Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: graph aspect ratio
From
Maarten buis <[email protected]>
To
stata list <[email protected]>
Subject
Re: st: graph aspect ratio
Date
Sun, 6 Jun 2010 12:35:38 +0000 (GMT)
--- Ricardo Ovaldia wrote
> I am using the aspect ratio on a horizontal bar graph to make it wider
> than taller. However, this leaves a large empty area at the bottom of
> the plot region. Is there a way to get rid of the empty area?
I see what you mean. Probably the easiest way around
that is to specify -ysize()- instead of -aspect()-:
*----------------- begin example ------------------
sysuse auto, clear
graph hbar price, over(foreign) ///
aspectratio(.3) ///
name(aspect, replace)
graph hbar price, over(foreign) ///
ysize(3) ///
name(ysize, replace)
*----------------- end example --------------------
(For more on examples I sent to the Statalist see:
http://www.maartenbuis.nl/example_faq )
--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany
http://www.maartenbuis.nl
--------------------------
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/