[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

From |
Donald Spady <dspady@ualberta.ca> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
RE: st: Re: Graph problem |

Date |
Tue, 02 Mar 2004 15:00:02 -0700 |

Nick

What is going "wrong" is that, when creating overlaid graphs, the banner for each graph has a colored background, as on page 86 of the graph manual. This seems to be the case for all the styles in the 'by' window except the Stata7 style, which creates a graph with no banner and the title for each separate graph is left justified. It is possible to use the other styles and create a graph with a colorless banner using the command:

"subtitle(, pos(11) nobexpand bfcolor(white) nobox)" as part of the overall graph command. If I do this within the subtitle options, as you suggested, it does not work. I don't know why. even though it is the same command. Nevertheless, as I write this, I see that if Stata 7 style works, why not use it. The problem with using Stata 7 style is that when I try to create ticks (in this case X-axis ticks for ages 1-17) using the Minor tick options 0(1)17 (so as to mark each year with a single tick), I get 34 ticks, which only is chartjunk. Is there something wrong with my command for ticks? I know this is long and I apologize for it.

Don

At 02:38 PM 3/2/2004, you wrote:

Donald SpadySorry, Don: I've lost track of what's going wrong here. Nick n.j.cox@durham.ac.uk > -----Original Message----- > From: owner-statalist@hsphsun2.harvard.edu > [mailto:owner-statalist@hsphsun2.harvard.edu]On Behalf Of Donald Spady > Sent: 02 March 2004 21:31 > To: statalist@hsphsun2.harvard.edu > Subject: RE: st: Re: Graph problem > > > Nick > I tried it and got 4 boxes with a grey header each time > and the topic of > the box in the header. Just as it is shown in the text of > the graphics > manual. I took out all the extraneous material to get the basic > command. Here it is: > > twoway (connected ratef age) (connected ratem age), by(Disorder , > style(compact) noxrescale yrescale subtitle(, > pos(11) nobexpand bfcolor(white) nobox) legend(off)) > ymlabel(, nolabels) > xmlabel(, nolabels) > > What am I doing wrong. > > Don > > At 02:06 PM 3/2/2004, you wrote: > >It's not true that this demands a command line input. > > > >Substituting other variables for -lexp- and -gnppc-, > >which is immaterial, I was able to do this via a dialog. > > > >What took an iteration for me to get right was to put > > > >, pos(11) nobexpand bfcolor(white) nobox > > > >in the -subtitle- box (to leave -position- > >at default). > > > >You do need the manual to hand, or a previous solution > >to hand, or extremely good recall of -graph- syntax, > >to do this in practice, but that's a different matter. > > > >I too am grateful for this thread as I was insufficiently > >aware of the possibilities opened up by -style(compact)-. > >In the next edition of the manual, perhaps examples should > >be placed nearer the point this is defined. > > > >Nick > >n.j.cox@durham.ac.uk > > > >Donald Spady > > > > > Philip and Scott > > > Many thanks for your responses. Philip's idea worked but > > > I could not > > > get Scott's to work. The problem with both of them is that > > > they demand a > > > command line input as opposed to entering them using the > > > menu. That is not > > > a big problem except that I have to remember the command each > > > time I use > > > it, so I have written a little note to myself. I must admit > > > I didn't find > > > the manual too helpful for this so Philip's and Scott's > > > contributions are really appreciated. > > > > > > >My messages to the Stata List are not being echoed back to > > > my machine so > > > >I'm not sure if there is something wrong at the List end or at my > > > >end. Anyway, in case it's a list problem, and others > > > haven't already > > > >provided a better solution, here is my go at trying to solve > > > your problem: > > > > > > > >scatter lexp gnppc, by(region, total style(compact)) subtitle(, > > > >pos(11) nobexpand bfcolor(white) nobox) > > > > > > > >The trick is in using the -subtitle()- option of the main > > > (-scatter-) > > > >command. I am sure other specifications of > > > "text_box_options" than the > > > >ones I used (bfcolor and nobox) are possible, but at least > > > you can play > > > >with these: see page 500 and 502 which alerts us to the fact > > > that we can > > > >use textbox options as suboptions for -title- or -subtitle- > > > and then page 483. > > > >* > >* 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/ > > Donald Spady > > Department of Pediatrics > 2C3.92 WMC, University of Alberta > Edmonton, Alberta, Canada > T6G 2R7 > > 780-407-1244:O > 780-407-7136:F > > Nature has no reset button. > > > * > * 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/

Department of Pediatrics

2C3.92 WMC, University of Alberta

Edmonton, Alberta, Canada

T6G 2R7

780-407-1244:O

780-407-7136:F

Nature has no reset button.

*

* 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/

**References**:**RE: st: Re: Graph problem***From:*"Nick Cox" <n.j.cox@durham.ac.uk>

- Prev by Date:
**st: Urgent question: restoring data** - Next by Date:
**Re: st: Making saveold a permanent option** - Previous by thread:
**RE: st: Re: Graph problem** - Next by thread:
**RE: st: Re: Graph problem** - Index(es):

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