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: -translate- graph into jpeg png or gif
From
Charles Vellutini <[email protected]>
To
"[email protected]" <[email protected]>
Subject
RE: st: -translate- graph into jpeg png or gif
Date
Mon, 6 May 2013 10:56:20 +0000
Many thanks Maarten. Sounds like a solution but I must be doing something wrong, for a get a "could not find Graph window" error right after the -graph export- command below
Here is the code I tried :
graph matrix `vars', saving(scatter_matrix, replace) nodraw
graph use scatter_matrix, nodraw
graph export $output_dir\scatter_matrix.png, replace
thanks again
Charles
-----Message d'origine-----
De : [email protected] [mailto:[email protected]] De la part de Maarten Buis
Envoyé : lundi 6 mai 2013 12:37
À : [email protected]
Objet : Re: st: -translate- graph into jpeg png or gif
On Mon, May 6, 2013 at 12:18 PM, Charles Vellutini wrote:
> I would like to convert a .gph graph saved on disk into either a .jpeg, .png or .gif file. I cannot use the -graph export- command, because it requires the graph to be displayed first, which won't work for us (for reasons unimportant here).
You can use the -nodraw- option in -graph use- to load the graph without drawing it (see: -help graph use-), after that you can use -graph export-.
Hope this helps,
Maarten
---------------------------------
Maarten L. Buis
WZB
Reichpietschufer 50
10785 Berlin
Germany
http://www.maartenbuis.nl
---------------------------------
*
* 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/