[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnuplot image code
From: |
John W. Eaton |
Subject: |
gnuplot image code |
Date: |
Wed, 25 Oct 2006 15:42:05 -0400 |
On 20-Oct-2006, Quentin Spencer wrote:
| Attached is a modified version of Dan's code for displaying images in
| gnuplot (versions >=4.1). I have reorganized the code a bit, but I put
| Dan's name in the copyright notice, since what I did was mostly cutting
| and pasting. I'm including 3 files: a patch to image.m,
| __gnuplot_version__.m, which returns the version of gnuplot, and
| __img__.m, the low-level interface with gnuplot. I have opted to put
| only the gnuplot specific code in __img__.
OK, I checked in the changes to image.m and the new __img__.m file.
I changed the line
| + if __gnuplot_version__ > 4.0
to be
if (compare_versions (__gnuplot_version__, "4.0", ">"))
since __gnuplot_version__ now returns a character string, and also
because version numbers like 4.10 are usually interpreted to be
greater than 4.9.
jwe