Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

RE: st: What determines ytitle distance from graph


From   DE SOUZA Eric <[email protected]>
To   "[email protected]" <[email protected]>
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 <[email protected]> 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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index