Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | DE SOUZA Eric <eric.de_souza@coleurope.eu> |
To | "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |
Subject | RE: st: What determines ytitle distance from graph |
Date | Thu, 13 Jan 2011 12:08:03 +0100 |
Further information: When I replace lqrt by abs(lqrt), the problem disappears and I do not need to yscale. Eric Eric de Souza College of Europe Brugge (Bruges), Belgium http://www.coleurope.eu Thanks. graph twoway scatter lqrt rla, ylabel(, angle(horizontal)) yscale(titlegap(*-30)) gave something reasonable. It required some experimentation. Eric Eric de Souza College of Europe Brugge (Bruges), Belgium http://www.coleurope.eu You can tune using -ysc(, titlegap())- (or -xsc()- as the case may be). Nick On Thu, Jan 13, 2011 at 9:37 AM, DE SOUZA Eric <eric.de_souza@coleurope.eu> wrote: > When I change the ylabel angle to horizontal for a specific variable, the distance between the yaxis and the ytitle is quite large. > > . sum lqrt > > Variable | Obs Mean Std. Dev. Min Max > -------------+-------------------------------------------------------- > lqrt | 106 -.538891 .2215944 -.8609112 -.1334978 > > . graph twoway scatter lqrt rla > NO PROBLEM > > . graph twoway scatter lqrt rla, ylabel(, angle(horizontal)) > DISTANCE OF LABEL lqrt FROM GRAPH IS LARGE > > . graph twoway scatter rla lqrt, ylabel(, angle(horizontal)) > Y X CHANGED: NO PROBLEM > > . clear > > . webuse auto > (1978 Automobile Data) > > . graph twoway scatter price mpg, ylabel(, angle(horizontal)) > NO PROBLEM > > . gen price2 = price/1000 > Y SCALED TO SEE IF THIS COULD BE THE REASON, BUT: > > . graph twoway scatter price2 mpg, ylabel(, angle(horizontal)) > NO PROBLEM * * * 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/