David Elliott wrote:
I'm plotting, in two separate graphs with the same xscale, a graph of
percentiles with no xlabels and a graph of counts which are
subsequently combined in a col(1) orientation with the second plot
providing xlabels for both. Both graphs have legends on the right and
I can get the right border of the plots to line up by specifying equal
textwidth()s in the legend properties of the two graphs. I am then
left with trying to align the left side of the plotting areas. The
difficulty arises from the axis labels being of different numbers of
digits, e.g. the range on plot1 may be (0,50) and on plot 2 (0,2500).
I can't predict beforehand what the relative number widths are going
to be and since the graphs are being generated in a loop, there can be
no provision for hand-tuning. I have hopped around the graphics
manual (does anyone else find it confusing?) and found titlegap()
which can be used to tune the spacing between axis title and labels,
but that is unsatisfactory for an automated process.
----------------------------------------------------------------
If you want horizontal y-axis labels, I dont think it can be done.
However, if you can accept vertical y-axis labels, as in the official
Stata s1 and s2 schemes, you have no problem.
Are vertical y-axis labels acceptable to you?
... , ylabel(... , angle(vertical))
Svend
________________________________________________________
Svend Juul
Institut for Folkesundhed, Afdeling for Epidemiologi
(Institute of Public Health, Department of Epidemiology)
Vennelyst Boulevard 6
DK-8000 Aarhus C, Denmark
Phone, work: +45 8942 6090
Phone, home: +45 8693 7796
Fax: +45 8613 1580
E-mail: [email protected]
_________________________________________________________
*
* 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/