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: RE: Changing titles of graphs in a loop without doing all the graphs again
From
Kieran McCaul <[email protected]>
To
"[email protected]" <[email protected]>
Subject
RE: st: RE: Changing titles of graphs in a loop without doing all the graphs again
Date
Tue, 18 Mar 2014 06:06:18 +0800
...
Type -help class-
gr_edit is editing the contents of class "variables"
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Benjamin Villena Roldan
Sent: Tuesday, 18 March 2014 3:33 AM
To: [email protected]
Subject: Re: st: RE: Changing titles of graphs in a loop without doing all the graphs again
Thank you very much, David
I just want to say it would be nice to document the syntax of gr_edit in a newer version of Stata. Perhaps a manual update would be enough. Knowing these techniques would save you a lot of time when you are dealing with complicated models and graphs are expensive to create from scratch.
All the best
----- Original Message -----
From: "David Radwin" <[email protected]>
To: [email protected]
Sent: Monday, March 17, 2014 1:37:40 PM
Subject: st: RE: Changing titles of graphs in a loop without doing all the graphs again
You can use -gr_edit- to delete and then add a title, like this:
twoway function y=x^3, title("Old title") gr_edit .title.text = {} gr_edit .title.text.Arrpush New title
This solution presumes you either have the graphs in memory or saved as .gph files.
David
--
David Radwin, Senior Research Associate
Education and Workforce Development
RTI International
2150 Shattuck Ave. Suite 800, Berkeley, CA 94704
Phone: 510-665-8274
www.rti.org/education
> -----Original Message-----
> From: [email protected] [mailto:owner-
> [email protected]] On Behalf Of Benjamin Villena Roldan
> Sent: Saturday, March 15, 2014 2:49 PM
> To: [email protected]
> Subject: st: Changing titles of graphs in a loop without doing all the
> graphs again
>
>
>
> Dear statalist
>
> I have various dozens of graphs I computed using margins from a
> complicated model.
> My problem is I need to change their titles now.
> Since it took several days to compute all of them, I am wondering if
> there is a way I could edit just the titles of these graphs without
> running the whole thing again. Of course, the cumbersome way to do it
> is just using the graph editor, but it will be too time-consuming.
>
> I hope you can help me
>
> Best
>
> B.
*
* 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/
*
* 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/
*
* 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/