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]

st: RE: Changing titles of graphs in a loop without doing all the graphs again


From   "Radwin, David" <[email protected]>
To   <[email protected]>
Subject   st: RE: Changing titles of graphs in a loop without doing all the graphs again
Date   Mon, 17 Mar 2014 12:37:40 -0400

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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index