[Top][All Lists]

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

Re: Patch to sombrero.m

From: Quentin Spencer
Subject: Re: Patch to sombrero.m
Date: Fri, 13 Oct 2006 06:39:20 -0500
User-agent: Thunderbird (X11/20060913)

Søren Hauberg wrote:
Quentin Spencer skrev:
I also have a slightly related question--is there any way to get version information from gnuplot from within octave?
Somewhere on the gnuplot sites there is a script for displaying images using gnuplot 4.2. In that you'll see the following code:

  ## Get gnuplot version if this is first time function is called.
  if (__gnuplot_version__ == 0)
    [status, output] = system([gnuplot_binary " --version"]);
    words = split(output, " ");
    if ( (size(words,1) >= 2) && isdigit(words(2,1)) )
      __gnuplot_version__ = sscanf(words(2,:), '%f', 1);
      __gnuplot_version__ = -1;
    if (__gnuplot_version__ < 4.1)
disp('Images can be displayed using Gnuplot version 4.1 or higher.');

Is that what you're looking for?

Yes, that's what I had in mind. It's not a very pretty solution, but probably the best there is.


reply via email to

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