Mercurial > hg > octave-max
comparison scripts/plot/__gnuplot_has_feature__.m @ 12024:6d6e703f467c release-3-2-x
Add feature 'wxt_has_size' to __gnuplot_has_feature__.m & apply in gnuplot_drawnow.m.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Fri, 26 Jun 2009 12:56:16 +0200 |
parents | 5ea44288952d |
children | 2c356a35d7f5 |
comparison
equal
deleted
inserted
replaced
12023:ff22f50a0266 | 12024:6d6e703f467c |
---|---|
23 ## Created: 2009-01-27 | 23 ## Created: 2009-01-27 |
24 | 24 |
25 function res = __gnuplot_has_feature__ (feature) | 25 function res = __gnuplot_has_feature__ (feature) |
26 persistent features has_features | 26 persistent features has_features |
27 features = {"x11_figure_position", | 27 features = {"x11_figure_position", |
28 "wxt_figure_size", | |
28 "transparent_patches", | 29 "transparent_patches", |
29 "transparent_surface", | 30 "transparent_surface", |
30 "epslatex_implies_eps_filesuffix", | 31 "epslatex_implies_eps_filesuffix", |
31 "epslatexstandalone_terminal", | 32 "epslatexstandalone_terminal", |
32 "screen_coordinates_for_{lrtb}margin", | 33 "screen_coordinates_for_{lrtb}margin", |
33 "variable_GPVAL_TERMINALS", | 34 "variable_GPVAL_TERMINALS", |
34 "key_has_font_properties"}; | 35 "key_has_font_properties"}; |
35 | 36 |
36 if (isempty (has_features)) | 37 if (isempty (has_features)) |
37 gnuplot_version = __gnuplot_version__ (); | 38 gnuplot_version = __gnuplot_version__ (); |
38 versions = {"4.2.5", "4.3", "4.3", "4.2", "4.2", "4.3", "4.3", "4.3"}; | 39 versions = {"4.2.5", "4.3.0", "4.3", "4.3", "4.2", "4.2", "4.3", "4.3", "4.3"}; |
39 operators = {">=", ">=", ">=", ">=", ">=", ">=", ">=", ">="}; | 40 operators = {">=", ">=", ">=", ">=", ">=", ">=", ">=", ">=", ">="}; |
40 have_features = logical (zeros (size (features))); | 41 have_features = logical (zeros (size (features))); |
41 for n = 1 : numel (have_features) | 42 for n = 1 : numel (have_features) |
42 has_features(n) = compare_versions (gnuplot_version, versions{n}, operators{n}); | 43 has_features(n) = compare_versions (gnuplot_version, versions{n}, operators{n}); |
43 endfor | 44 endfor |
44 endif | 45 endif |