help-octave
[Top][All Lists]
Advanced

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

Re: gset term & octave


From: Thomas Weber
Subject: Re: gset term & octave
Date: Thu, 13 Mar 2008 12:24:06 +0100

Am Donnerstag, den 13.03.2008, 11:34 +0100 schrieb Javier Arantegui:
> Hello,
> 
> On 3/10/08, John W. Eaton <address@hidden> wrote:
> > With 3.0.0, you can use
> >
> > print -dpng myfile.png
> >
> > to create a png file of the current plot (assuming your version of
> > gnuplot has been compiled so that it can generate PNG files).
> 
> I know that I'm not the smartest member of the list, and maybe I'm the
> only one who finds this confusing. Honestly I haven't read all the
> documentation, and surely that's my problem.
> 
> When you type "help print" in Octave or read the available
> documentation of print
> (http://www.gnu.org/software/octave/doc/interpreter/Printing-Plots.html#Printing-Plots),
> you get:
> 
> 
> — Function File: print (filename, options)
> 
> Print a graph, or save it to a file
> filename defines the file name of the output file. If no filename is
> specified, output is sent to the printer.
> options:
> -Pprinter
>  Set the printer name to which the graph is sent if no filename is specified.
> -color
> etc.
> 
> 
> I though that the correct syntax was something like this:
> 
> print (test.fig, -dfig -color)

This will work, if you put your arguments as strings:
        print('test.fig', '-dfig', '-color')
The part about the string should be clear, as color, dfig and so on
might be variable names. The comma in the second argument list is
probably not that clear. 


> I think that this is clearer for newbies.

I'd actually say an example would be more helpful.

        Thomas



reply via email to

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