diff scripts/plot/private/__gnuplot_has_feature__.m @ 16095:1339c964b527

Fix warning when using "termoption dashed" with gnuplot 4.2.X (bug #38370) * scripts/plot/__gnuplot_drawnow__.m: Test whether gnuplot is new enough to have "termoption dashed". If not, set the dashed option directly when the terminal is set. test for "has_termoption_dashed".
author Rik <rik@octave.org>
date Sun, 24 Feb 2013 07:25:56 -0800
parents 12d13534265c
children 3cce6b4e0f7c
line wrap: on
line diff
--- a/scripts/plot/private/__gnuplot_has_feature__.m
+++ b/scripts/plot/private/__gnuplot_has_feature__.m
@@ -35,7 +35,8 @@
               "screen_coordinates_for_{lrtb}margin",
               "variable_GPVAL_TERMINALS",
               "key_has_font_properties",
-              "windows_figure_position"};
+              "windows_figure_position",
+              "has_termoption_dashed"};
 
   if (isempty (has_features))
     try
@@ -44,8 +45,8 @@
       ## Don't throw an error if gnuplot isn't installed
       gnuplot_version = "0.0.0";
     end_try_catch
-    versions = {"4.2.5", "4.4", "4.4", "4.4", "4.2", "4.2", "4.4", "4.4", "4.4", "4.4"};
-    operators = {">=", ">=", ">=", ">=", ">=", ">=", ">=", ">=", ">=", ">="};
+    versions = {"4.2.5", "4.4", "4.4", "4.4", "4.2", "4.2", "4.4", "4.4", "4.4", "4.4", "4.3"};
+    operators = {">=", ">=", ">=", ">=", ">=", ">=", ">=", ">=", ">=", ">=", ">="};
     have_features = logical (zeros (size (features)));
     for n = 1 : numel (have_features)
       has_features(n) = compare_versions (gnuplot_version, versions{n}, operators{n});