help-octave
[Top][All Lists]
Advanced

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

Re: gnuplot: set terminal png


From: Henry F. Mollet
Subject: Re: gnuplot: set terminal png
Date: Mon, 08 Aug 2005 13:27:52 -0700
User-agent: Microsoft-Entourage/11.1.0.040913

On Mac another way is to save as pdf in AquaTerm. Then open the file in
Preview and save as PNG. Quality of png on screen looks just as good as pdf
(viewing a contour plot). I have not checked if there's a difference when
printing. Size of pdf was 52 kB and surprisingly? increased to 132 kB for
png file.
Henry


on 8/8/05 1:33 AM, Shai Ayal at address@hidden wrote:

> Another way to go is to output ps and convert to png using ghostscript in
> my experience the output png looks nicer this way.
> 
> For this you of course have to have ghostscript installed, but it is a
> rather common program.
> 
> Use the following in the shell command line (it should all be on one line,
> but maybe the mailer wrapped it)
> 
> gs -q -dSAFER -dBATCH -dNOPAUSE -dTextAlphaBits=4 -r150 -sDEVICE=png16m
> -sOutputFile=file.png file.ps
> 
> where file.ps is that you produced with gnuplot, file.png is the file you
> will get.
> 
> The resolution of the png file can be changed using the -r switch -- in the
> example it is set to 150dpi.
> 
> you can also convert to other formats -- inputing
> 
> gs -h
> 
> will give you a (long) list of available devices. Of these, I note
> -sDEVICE=jpeg or -sDEVICE=pdfwrite to get jpeg/pdf respectively
> 
> Shai
> 
> Vic Norton wrote:
>> I would like to generate PNG files with gnuplot, but "set terminal png"
>> does not work with my version gnuplot 4.0. Apparently there is no PNG
>> terminal. (This used to work with earlier versions of gnuplot.)
>> 
>> I am using Mac OS X 10.3. I am sure I just need to tweak some settings
>> somewhere (I read something about a "--with-gd=/usr/local/lib" option
>> that didn't work for someone), but I have no idea where to start. And I
>> am a Unix dummy to boot!
>> 
>> Can someone give me a hand. I realize this is not exactly an octave
>> question, but people do use gnuplot from octave. How do I make "set
>> terminal png" work in gnuplot?
>> 
>> Regards,
>> 
>> Vic
>> 
>> 
>> 
>> -------------------------------------------------------------
>> Octave is freely available under the terms of the GNU GPL.
>> 
>> Octave's home on the web:  http://www.octave.org
>> How to fund new projects:  http://www.octave.org/funding.html
>> Subscription information:  http://www.octave.org/archive.html
>> -------------------------------------------------------------
>> 
>> 
> 
> 
> 
> -------------------------------------------------------------
> Octave is freely available under the terms of the GNU GPL.
> 
> Octave's home on the web:  http://www.octave.org
> How to fund new projects:  http://www.octave.org/funding.html
> Subscription information:  http://www.octave.org/archive.html
> -------------------------------------------------------------
> 




-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]