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: using graph editor to change range


From   Scott Merryman <[email protected]>
To   [email protected]
Subject   Re: st: using graph editor to change range
Date   Wed, 25 Jan 2012 09:44:52 -0600

This seems to work in Stata 12

clear*
sysuse auto
scatter mpg price, ylab(10(10)40) ysc(ra(10 40)) name(desiredgraph,replace)
scatter mpg price, ylab(0(10)40) ysc(ra(0 40)) name(originalgraph,replace)
scatter mpg price, ylab(0(10)40) ysc(ra(0 40))
gr save toolarge,replace

graph use "C:\Documents and Settings\Scott_2\Desktop\toolarge.gph"
gr_edit .yaxis1.plotregion.yscale.curmin = 10


Scott


On Wed, Jan 25, 2012 at 8:42 AM, Cohen, Elan <[email protected]> wrote:
> Is it possible to change the axis range using the graph editor?  Imagine I did something like:
>
> sysuse auto
> scatter mpg price, ylab(0(10)40) ysc(ra(0 40))
> gr save toolarge
>
> I no longer have access to the original data - only toolarge.gph - and I'd now like to rescale the y-axis to go from say 10 to 40.
>
> I'm using Stata 11.
>
> Thank you,
>
> - Elan

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