help-octave
[Top][All Lists]
Advanced

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

Re: -dpng gives "invalid command"


From: John B. Thoo
Subject: Re: -dpng gives "invalid command"
Date: Fri, 10 Jul 2009 11:37:24 -0700


On Jul 10, 2009, at 11:29 AM, Thomas Treichl wrote:

John B. Thoo schrieb:
Hi, Thomas.
gnuplot> show version long
        G N U P L O T
        Version 4.2 patchlevel 5
        last modified Mar 2009
        System: Darwin 8.11.0
        Copyright (C) 1986 - 1993, 1998, 2004, 2007 - 2009
        Thomas Williams, Colin Kelley and many others
        Type `help` to access the on-line reference manual.
The gnuplot FAQ is available from http://www.gnuplot.info/ faq/ Send bug reports and suggestions to <http:// sourceforge.net/projects/gnuplot>
Compile options:
+READLINE -LIBREADLINE +HISTORY +BACKWARDS_COMPATIBILITY +BINARY_DATA
-LIBGD
-NOCWDRC +X11 +X11_POLYGON +MULTIBYTE +USE_MOUSE +HIDDEN3D_QUADTREE
+DATASTRINGS  +HISTOGRAMS  +OBJECTS  +STRINGVARS  +MACROS  +IMAGE
DRIVER_DIR     = "/usr/local/libexec/gnuplot/4.2"
GNUPLOT_PS_DIR = "/usr/local/share/gnuplot/4.2/PostScript"
HELPFILE       = "/usr/local/share/gnuplot/4.2/gnuplot.gih"
gnuplot>
Thanks.
---John.

Then yes, you're right - you're missing support for *png. Your version of Gnuplot has not been compiled against libgd. libgd (and libpng and libjpg...) is the library that you need to create graphics in *png, *jpg and *gif.

As your binary is in /usr/local I would expect you either compile and install Gnuplot for yourself or you use MacPorts? Either or, you need a binary that should give you something like this to save in *png on your Mac (compare compile options GD_* from my machine with yours):

  gnuplot> show version long

        G N U P L O T
        Version 4.2 patchlevel 5
        last modified Mar 2009
        System: Darwin 8.11.1

        Copyright (C) 1986 - 1993, 1998, 2004, 2007 - 2009
        Thomas Williams, Colin Kelley and many others

        Type `help` to access the on-line reference manual.
        The gnuplot FAQ is available from http://www.gnuplot.info/faq/

        Send bug reports and suggestions to
  <http://sourceforge.net/projects/gnuplot>

  Compile options:
-READLINE +LIBREADLINE +HISTORY +BACKWARDS_COMPATIBILITY +BINARY_DATA
  +GD_PNG  +GD_JPEG  +GD_GIF  +ANIMATION
-NOCWDRC +X11 +X11_POLYGON +MULTIBYTE +USE_MOUSE +HIDDEN3D_QUADTREE
  +DATASTRINGS  +HISTOGRAMS  +OBJECTS  +STRINGVARS  +MACROS  +IMAGE

  DRIVER_DIR     =
"/Users/Thomas/bin/Octave.app.3.2.0/Gnuplot.app/Contents/Resources/ libexec/gnuplot/4.2"
  GNUPLOT_PS_DIR = "/tmp/gnuplot-i386/share/gnuplot/4.2/PostScript"
HELPFILE = "/Users/Thomas/bin/Octave.app.3.2.0/Gnuplot.app/ Contents/Resources/share/gnuplot/4.2/gnuplot.gih"

Hope this helps somehow,

  Thomas

Hi, Thomas.

Yes, I compiled gnuplot myself. (I guess that was a mistake.) Would the easiest thing for me to do now be to install gnuplot from your octave-3.2.0-ppc.dmg?

If I drag-and-drop gnuplot from the .dmg into my Applications folder, would I then have to do anything in particular to use it instead of my previous installation?

Thanks again.

---John.


reply via email to

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