Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: RE: twoway function, controlling linepatternstyle


From   SamL <[email protected]>
To   [email protected]
Subject   Re: st: RE: twoway function, controlling linepatternstyle
Date   Tue, 8 Mar 2005 18:05:00 -0800 (PST)

Thanks, I left the "p" off.  I read the manually closely, but apparently
not closely enough--I missed the line under the "p" in -clp-.  Maybe it is
time for a new glasses prescription.

Sorry to bother everyone.  Thanks.

Sam

FYI I wrote the code below, using -cl- rather than -clp-:

twoway
     function y1=norm(1.551317+.4782641*x), range(0 1) cl("solid")
  || function y2=norm(1.794013-.045931*x), range(0 1) cl("dash")
  || function y3=norm(-.8574661-.1397268*x), range(0 1) cl("longdash")
  || function y4=norm(-.6183398-.2016093*x), range(0 1) cl("shortdash")
  ||,
 yscale(range (0 1))
 ytitle("Paid Labor Force Participation Probability")
 xtitle("1940")
 title("Figure 2.7.5") ;

Thanks.
Sam

On Tue, 8 Mar 2005, Scott Merryman wrote:

> This example works fine:
>
> twoway function y = cos(x)*sqrt(x) , range(0 5) clp(dot) ///
> clw(medthick) clc(blue) || function y = cos(x)*sqrt(x), ///
> range(5 10) clp(dash) clw(medthick) clc(blue) || ///
> function y = cos(x)*sqrt(x) , range(10 15) clp(solid) ///
> clw(medthick) clc(blue)  legend(off)
>
>
> Scott
>
>
> > -----Original Message-----
> > From: [email protected] [mailto:owner-
> > [email protected]] On Behalf Of SamL
> > Sent: Tuesday, March 08, 2005 5:46 PM
> > To: Stata Listserve
> > Cc: [email protected]
> > Subject: st: twoway function, controlling linepatternstyle
> >
> > I am attempting to graph four different functions on one graph; each
> > function will have 3 different segments.  I want different segments to
> > have different linepatternstyles.
> >
> > I checked the graphics manual and it says there are function_options and
> > line_options:
> >
> > "-line_options- are any of the options allowed by graph twoway line; see
> > [G] graph twoway line."
> >
> > I went to graph twoway line and it says:
> >
> > "line_options are . . . any of the options allowed by graph twoway scatter
> > with exception of marker options, marker_placement_options, and
> > marker_label_options, which will be ignored if specified.  See {G} graph
> > twoway scatter."
> >
> > I went to graph twoway scatter and there, on page 337, under
> > connect_options, it lists clpattern(linepatternstyle) as an option to
> > specify whether a line is solid, dashed, etc.
> >
> > Yet, when I use the cl(linepatternstyle) command in writing the code for
> > my job, stata says that the option is not available for function graphs.
> >
> > So . . . I am puzzled.  Any insights on what to do to get control over the
> > linepatterning in function graphs (with multiple, complex functions) is
> > greatly appreciated.
> >
> > PS--I updated stata earlier this morning (around 11AM PST), and the
> > problem still occurs.
> >
> > Thanks for any assistance you can provide.
> >
> > Sam
> > *
> > *   For searches and help try:
> > *   http://www.stata.com/support/faqs/res/findit.html
> > *   http://www.stata.com/support/statalist/faq
> > *   http://www.ats.ucla.edu/stat/stata/
>
>
> *
> *   For searches and help try:
> *   http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index