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

# 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 11:33:51 +0100

```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

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Nick Cox
Sent: 13 January 2011 11:13
To: [email protected]
Subject: Re: st: What determines ytitle distance from graph

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/

*
*   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/
```