Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: Regaining control over axis ranges


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Regaining control over axis ranges
Date   Mon, 24 Dec 2012 22:39:38 +0000

You don't spell out what does not work, but -?scale()- options don't
omit data. That's the most common misunderstanding among those who
don't read the help carefully.

Nick

On Mon, Dec 24, 2012 at 9:21 PM, annoporci <annoporci@gmail.com> wrote:

> I'm trying to shorten the y axis of a graph. I understand it is not always
> straightforward.
>
> Quoting from "Stata tip 23: Regaining control over axis ranges"
> (http://www.stata-journal.com/article.html?article=gr0019)
> <Quote>
> "to get a narrower x-axis, we must specify a narrower set of axis labels...
> for example
>    scatter mpg price, xlabel(5000[1000]15000)
> <\Quote>
>
> I couldn't get it to work, what I'm doing wrong?
>
> <CODE>
> webuse rates,clear
> tsset date
> graph twoway (tsline dow) (lfit dow date), yscale(range(-250 250))
> ylabel(-250[100]250, grid)
> <\CODE>
>
> --
> Patrick Toche.
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index