From | Donald Spady <[email protected]> |
To | [email protected] |
Subject | Re: st: Re: Graph problem |
Date | Tue, 02 Mar 2004 13:47:57 -0700 |
Hello Don
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.
Phil
Philip Ryan
Associate Professor,
Department of Public Health
Associate Dean (Information Technology)
Faculty of Health Sciences
University of Adelaide 5005
South Australia
tel 61 8 8303 3570
fax 61 8 8223 4075
http://www.public-health.adelaide.edu.au/
CRICOS Provider Number 00123M
-----------------------------------------------------------
This email message is intended only for the addressee(s)
and contains information that may be confidential and/or
copyright. If you are not the intended recipient please
notify the sender by reply email and immediately delete
this email. Use, disclosure or reproduction of this email
by anyone other than the intended recipient(s) is strictly
prohibited. No representation is made that this email or
any attachments are free of viruses. Virus scanning is
recommended and is the responsibility of the recipient.
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. At 06:01 PM 3/1/2004, you wrote:
a)You can use the "graphregion(color(white)))" option. b)the banners are regarded as subtitles and so one manipulate them with the "subtitle( )" option. Something like either: subtitle(, pos(11 ) nob) subtitle(, pos(11 ) ) subtitle(, pos(11 ) nobexpand) And so all together: twoway (scatter gnppc lexp), by(region, total graphregion(color(white))) subtitle(, pos(11 ) nob) Hope this helps, Scott ----- Original Message ----- From: "Donald Spady" <[email protected]> To: <[email protected]> Sent: Monday, March 01, 2004 4:30 PM Subject: st: Graph problem > Dear Statalisters > I am spending some time trying to learn the graphing capabilities of Stata > 8. I have a question that relates to by-styles. ON page 86 of the > graphics manual there is a command > . scatter lexp gnppc, by(region, total style(compact)) > and the resultant graph which is a composite of 4 graphs each of which is > highlighted by a banner (e.g. Eur and C Asia) on a gray background. MY > QUESTION is "How can one (a) get rid of the grey background -- I have tried > all the commands I could think of-- and (b) how can one manipulate the > position of the banner i.e. instead of being centred over the plot, push it > to the left. Some of this can be avoided by using style7 which is a fall > back to the style used in Stata7, but I think I should be able to do it in > Stata8. As well, when i tried Stata7 style I got into problems with tick > marks, but that is a separate question. > Any help is appreciated > Thanks, > > Donald Spady
* * 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 |