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

Re: st: Re: Graph problem

From   Donald Spady <[email protected]>
To   [email protected]
Subject   Re: st: Re: Graph problem
Date   Tue, 02 Mar 2004 13:47:57 -0700

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.

At 05:01 PM 3/1/2004, you wrote:

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.


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


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,

----- 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:

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