Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

[no subject]



Friedrich

On Mon, May 6, 2013 at 6:56 AM, Charles Vellutini
<charles.vellutini@ecopa.com> wrote:
> 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 : owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] De la part de Maarten Buis
> Envoyé : lundi 6 mai 2013 12:37
> À : statalist@hsphsun2.harvard.edu
> 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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index