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

st: Graph relabel with angle


From   Friedrich Huebler <huebler@rocketmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Graph relabel with angle
Date   Wed, 17 Nov 2004 14:26:42 -0800 (PST)

I tried to create multiple-line labels for bar graphs but they only
work at certain angles (multiples of 90 degrees). Single line labels
can have an angle of 45 degrees, for example.

. sysuse auto, clear
. graph bar mpg, over(foreign, relabel(1 "Domestic cars")
label(angle(45)))
. graph bar mpg, over(foreign, relabel(1 `" `"Domestic"' `"cars"' "')
label(angle(45)))

The first -graph- command works as expected but in the second command
the -angle(45)- option is ignored. Notice how the x-axis is moved up
in the second graph to create space for the angled lable, but the
label itself appears written horizontally. Is there any way to create
multiple-line labels with a 45 degree angle?

Many thanks,

Friedrich Huebler


		
__________________________________ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index