[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Patch to sombrero.m
From: |
Søren Hauberg |
Subject: |
Re: Patch to sombrero.m |
Date: |
Fri, 13 Oct 2006 00:07:09 +0200 |
User-agent: |
Thunderbird 1.5.0.7 (X11/20060918) |
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);
else
__gnuplot_version__ = -1;
endif
if (__gnuplot_version__ < 4.1)
disp('Images can be displayed using Gnuplot version 4.1 or higher.');
endif
end
Is that what you're looking for?
Søren