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   "Cohen, Elan" <[email protected]>
To   "[email protected]" <[email protected]>
Subject   RE: st: using graph editor to change range
Date   Wed, 25 Jan 2012 15:52:03 +0000

Perfect!  Thank you Scott.

Incidentally, where can I find more info on -gr_edit-?  -h gr_edit- doesn't provide any info.

- Elan


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Scott Merryman
Sent: Wednesday, January 25, 2012 10:45
To: [email protected]
Subject: Re: st: using graph editor to change range

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/


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