Mercurial > hg > octave-thorsten
changeset 9398:684312a5291c
Add feature 'wxt_has_size' to __gnuplot_has_feature__.m & apply in gnuplot_drawnow.m.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Thu, 25 Jun 2009 18:58:53 -0400 |
parents | 394c7adb488f |
children | a5f6b5800f86 |
files | scripts/ChangeLog scripts/plot/__gnuplot_has_feature__.m scripts/plot/gnuplot_drawnow.m |
diffstat | 3 files changed, 11 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,9 @@ +2009-06-25 Ben Abbott <bpabbott@mac.com> + + * 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 <bpabbott@mac.com> * plot/__go_draw_figure__.m: Modify the implicit margin when gnuplot's
--- 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});
--- 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)))