# HG changeset patch # User Ben Abbott # Date 1245970733 14400 # Node ID 684312a5291c48ab5fd24b38fe6e07ccf291338e # Parent 394c7adb488fbfc073c8241dbc71df5a3c4ac33a Add feature 'wxt_has_size' to __gnuplot_has_feature__.m & apply in gnuplot_drawnow.m. diff -r 394c7adb488f -r 684312a5291c scripts/ChangeLog --- a/scripts/ChangeLog Thu Jun 25 12:24:09 2009 -0400 +++ b/scripts/ChangeLog Thu Jun 25 18:58:53 2009 -0400 @@ -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 -r 394c7adb488f -r 684312a5291c scripts/plot/__gnuplot_has_feature__.m --- a/scripts/plot/__gnuplot_has_feature__.m Thu Jun 25 12:24:09 2009 -0400 +++ b/scripts/plot/__gnuplot_has_feature__.m Thu Jun 25 18:58:53 2009 -0400 @@ -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 -r 394c7adb488f -r 684312a5291c scripts/plot/gnuplot_drawnow.m --- a/scripts/plot/gnuplot_drawnow.m Thu Jun 25 12:24:09 2009 -0400 +++ b/scripts/plot/gnuplot_drawnow.m Thu Jun 25 18:58:53 2009 -0400 @@ -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)))