Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: graph aspect ratio


From   Maarten buis <maartenbuis@yahoo.co.uk>
To   stata list <statalist@hsphsun2.harvard.edu>
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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index