Statalist


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

st: Black and White Graphs


From   jasonm@ucla.edu
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: Black and White Graphs
Date   Sun, 30 Aug 2009 01:52:11 -0700

I tried using lean1 to create a black and white graph.
The plot comes out fine.
However, the y-axis labels (for studyno) become larger and overlap with each other when I combine three graphs together using grc1leg. Does anyone know how to shrink the y-axis labels so they fit well on the graph when I use grc1leg?
Thank you.

catplot hbar spotg studyno, percent(studyno) asyvars stack name(spot) title("Spot") ylabel(,labsize(*0.6)) legend(off) /// bar(1, bcolor(gs13)) bar(2, bcolor(gs11)) bar(3, bcolor(gs8)) bar(4, bcolor(gs5)) bar(5, bcolor(gs2)) scheme(lean1)
catplot hbar calcg studyno, percent(studyno) asyvars stack name(calc)  
title("Calculated") ylabel(,labsize(*0.6)) legend(off) ///
bar(1, bcolor(gs13)) bar(2, bcolor(gs11)) bar(3, bcolor(gs8)) bar(4,  
bcolor(gs5)) bar(5, bcolor(gs2)) scheme(lean1)
catplot hbar longg studyno, percent(studyno) asyvars stack name(longx)  
title("Long") legend(off) ///
bar(1, bcolor(gs13)) bar(2, bcolor(gs11)) bar(3, bcolor(gs8)) bar(4,  
bcolor(gs5)) bar(5, bcolor(gs2)) scheme(lean1)
grc1leg spot calc longx,scheme(lean1)

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