gset term & octave

Javier Arantegui javier.arantegui at gmail.com
Thu Mar 13 05:34:09 CDT 2008


Hello,

On 3/10/08, John W. Eaton <jwe at bevo.che.wisc.edu> 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)

I believed that print was a sort of function. Obviously it didn't work.

Maybe it would be better to use the man approach to this, like in this
example (man ls):


NAME
       ls - list directory contents

SYNOPSIS
       ls [OPTION]... [FILE]...


I think that this is clearer for newbies.

Javier


--
Lee mi blog: "Un pequeño paso para Neil" http://up3n.wordpress.com/



More information about the Help-octave mailing list