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 on April 23, and its replacement, is already up and running.

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

st: Regaining control over axis ranges

From   annoporci <>
To   "" <>
Subject   st: Regaining control over axis ranges
Date   Tue, 25 Dec 2012 05:21:52 +0800

Dear Statalist,

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"
"to get a narrower x-axis, we must specify a narrower set of axis labels... for example
   scatter mpg price, xlabel(5000[1000]15000)

I couldn't get it to work, what I'm doing wrong?

webuse rates,clear
tsset date
graph twoway (tsline dow) (lfit dow date), yscale(range(-250 250)) ylabel(-250[100]250, grid)

Patrick Toche.
*   For searches and help try:

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