# HG changeset patch # User Ben Abbott # Date 1246013776 -7200 # Node ID 6d6e703f467c7620daf5efce3f5b2960916a9f36 # Parent ff22f50a0266af82ee62c95beb47ad52c34a57de Add feature 'wxt_has_size' to __gnuplot_has_feature__.m & apply in gnuplot_drawnow.m. diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,9 @@ +2009-06-25 Ben Abbott + + * plot/gnuplot_drawnow.m: Apply feature 'wxt_has_size'. + * plot/__gnuplot_has_feature__.m: Add feature 'wxt_has_size' for + gnuplot >= 4.3.0. + 2009-06-24 Ben Abbott * plot/__go_draw_figure__.m: Modify the implicit margin when gnuplot's diff --git a/scripts/plot/__gnuplot_has_feature__.m b/scripts/plot/__gnuplot_has_feature__.m --- a/scripts/plot/__gnuplot_has_feature__.m +++ b/scripts/plot/__gnuplot_has_feature__.m @@ -25,6 +25,7 @@ function res = __gnuplot_has_feature__ (feature) persistent features has_features features = {"x11_figure_position", + "wxt_figure_size", "transparent_patches", "transparent_surface", "epslatex_implies_eps_filesuffix", @@ -35,8 +36,8 @@ if (isempty (has_features)) gnuplot_version = __gnuplot_version__ (); - versions = {"4.2.5", "4.3", "4.3", "4.2", "4.2", "4.3", "4.3", "4.3"}; - operators = {">=", ">=", ">=", ">=", ">=", ">=", ">=", ">="}; + versions = {"4.2.5", "4.3.0", "4.3", "4.3", "4.2", "4.2", "4.3", "4.3", "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}); diff --git a/scripts/plot/gnuplot_drawnow.m b/scripts/plot/gnuplot_drawnow.m --- a/scripts/plot/gnuplot_drawnow.m +++ b/scripts/plot/gnuplot_drawnow.m @@ -205,6 +205,8 @@ "epslatex", "pstex", "pslatex"}; if (__gnuplot_has_feature__ ("x11_figure_position")) terminals_with_size{end+1} = "x11"; + endif + if (__gnuplot_has_feature__ ("wxt_figure_size")) terminals_with_size{end+1} = "wxt"; endif if (any (strncmpi (term, terminals_with_size, 3)))