changeset 8639:399af34bb4bf

# User Ben Abbott <bpabbott@mac.com> # Date 1233331838 18000 # Node ID 22880d26045c35be0b8e05e1934dc127021272d0 # Parent 4385bb503467d6cbd834378dd4023b1f5052b858 print.m: Use __gnuplot_has_feature__
author John W. Eaton <jwe@octave.org>
date Fri, 30 Jan 2009 11:10:51 -0500
parents 20e93feaa7f8
children 34b9a5743388
files scripts/ChangeLog scripts/plot/print.m
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Fri Jan 30 11:06:44 2009 -0500
+++ b/scripts/ChangeLog	Fri Jan 30 11:10:51 2009 -0500
@@ -1,5 +1,8 @@
 2009-01-30  Ben Abbott  <bpabbott@mac.com>
 
+	* plot/print.m: Use __gnuplot_has_feature__ instead of
+	compare_versions.
+
 	* plot/gnuplot_drawnow.m: Respect x11 figure position property.
 
 2009-01-29  John W. Eaton  <jwe@octave.org>
--- a/scripts/plot/print.m	Fri Jan 30 11:06:44 2009 -0500
+++ b/scripts/plot/print.m	Fri Jan 30 11:10:51 2009 -0500
@@ -221,7 +221,7 @@
     if (strcmp (dev, "tex"))
       dev = "epslatex";
       ## gnuplot 4.0 wants ".eps" in the output name    
-      if (compare_versions (__gnuplot_version__, "4.2", "<"))
+      if (! __gnuplot_has_feature__ ("epslatex_implies_eps_filesuffix"))
         name = cstrcat (name(1:dot), "eps");
       endif
     elseif (strcmp (dev, "ill"))
@@ -261,7 +261,7 @@
         termn = dev;
         options = "";
       elseif (strcmp (dev, "epslatexstandalone"))
-        if (compare_versions (__gnuplot_version__, "4.2", ">="))
+        if (__gnuplot_has_feature__ ("epslatexstandalone_terminal"))
 	termn = "epslatex";
 	options = "standalone ";
         else