Statalist


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

Re: st: [Graphics] how to set the length of an axis?


From   Antoine Terracol <terracol@univ-paris1.fr>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: [Graphics] how to set the length of an axis?
Date   Mon, 23 Mar 2009 19:00:27 +0100

Hello Ulrich.

Thanks again for the tip.

Yes, in my Windows box, the bars are just fine without the 95% rescaling.

I'll have access tomorrow to a Linux box, I'll try and let you know what happens.

Antoine

Ulrich Kohler wrote:
I thing you did. I have one comment and one question.

Comment: A nice trick to label the years for which you have data is

. levelsof year, local(lab)
. twoway rbar lower upper wageclass, xlabel(`lab')

Question: Adjusting the bar-width with
. levelsof wageclass, local(K)
. local width  = (`:word 2 of `K'' - `:word 1 of `K'')
. twoway || rbar lower upper wageclass, barwidth(`width') horizontal does not work sufficiently for me. On my screen (Stata 10.1 for Linux), the bars overlap, (although I think they shouldn't). In my proposal I have therefore used

. local width  = (`:word 2 of `K'' - `:word 1 of `K'') * .95

to scale the bar width somewhat further down. Wasn't that necessary under Windows?

Uli

*
*   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   |   What's new   |   Site index