Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: graph: ytitle position


From   "Dimitriy V. Masterov" <dvmaster@lily.src.uchicago.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: graph: ytitle position
Date   Wed, 9 Jun 2004 19:51:18 -0500 (CDT)

I found something like this will do the trick most of the time:

twoway (scatter y x, sort), ytitle("Y" " ") xtitle("X" " ")

This adds a blank line below the axis title.


Sometimes rotating the axis labels also helps:

twoway (scatter y x, sort), ytitle("Y" " ") xtitle("X" " ") ylabel(, angle(horizontal))

In general, casual empiricism tell me that adding a blank line will work
with any type of title.

DVM

On Wed, 9 Jun 2004 dcrawfo@itsa.ucsf.edu wrote:

> Hi,
>
> Sorry to trouble you, but...
>
> How do I control ytitle/xtitle position so as to put a little more room
> between the axis and the title?
>
> In the title command one can use: ti("title", position() ring()), but
> these didn't work with ytitle. _margin_ increased the area to the left of
> the graph, which gave more room, but that isn't what I'm after.  And
> finally bm() had no effect I could see.
>
> Thank you very much for your help.
>
> Cheers,
>
> Douglas Crawford
> Ph.D. Candidate, Dept. of Biochemistry
> UCSF
>
>
> *
> *   For searches and help try:
> *   http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>

_______________________________________________________________________________
Dimitriy V. Masterov

Work:
Center for Social Program Evaluation
1155 East 60th St. Room 038
Chicago, IL 60637
Work: (773)256-6005
Fax: (773)256-6313

Home:
1312 East 53rd St., Apt.309
Chicago, IL 60615
Mobile: (773)220-2760


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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