-dpng gives "invalid command"

Ben Abbott bpabbott at mac.com
Fri Jul 10 12:56:56 CDT 2009


On Friday, July 10, 2009, at 12:37PM, "John B. Thoo" <jthoo at yccd.edu> wrote:
>Hi, everyone.
>
>I can save a plot to EPS by
>
>   print ("foo.eps", "-deps")
>
>but when I try to save a plot to PNG by
>
>   print ("foo.png", "-dpng")
>
>I get a run of errors like
>
>
>gnuplot> e
>          ^
>          line 0: invalid command
>
>
>and no plot is saved.
>
>What am I doing wrongly?
>
>I'm using Octave 3.0.5 and gnuplot 4.2 patchlevel 5 in an X11 xterm  
>window in Mac OS X 10.4.11.
>
>Thanks.
>

I have no problem producing png output with 3.2 and gnuplot 4.2.5.

Can you run gnuplot and try ...

    set term png
    set output foo.png
    plot sin(x)
    quit

Do you still get the error?

Ben




More information about the Help-octave mailing list