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

st: Graph relabel with angle

From   Friedrich Huebler <>
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")
. graph bar mpg, over(foreign, relabel(1 `" `"Domestic"' `"cars"' "')

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! 

*   For searches and help try:

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