Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: st: -translate- graph into jpeg png or gif

From   Charles Vellutini <>
To   "" <>
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

-----Message d'origine-----
De : [] De la part de Maarten Buis
Envoyé : lundi 6 mai 2013 12:37
À :
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 L. Buis
Reichpietschufer 50
10785 Berlin
*   For searches and help try:

*   For searches and help try:

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