Mercurial > hg > octave-nkf
comparison scripts/plot/__gnuplot_has_feature__.m @ 9008:7a7cf569528d
gnuplot_drawnow.m: Check that gnuplot has internal variable "GPVAL_TERMINALS".
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Mon, 23 Mar 2009 18:21:25 -0400 |
parents | 665b264b6a50 |
children | ec159e991ee6 |
comparison
equal
deleted
inserted
replaced
9007:7e31df9a0334 | 9008:7a7cf569528d |
---|---|
27 features = {"x11_figure_position", | 27 features = {"x11_figure_position", |
28 "transparent_patches", | 28 "transparent_patches", |
29 "transparent_surface", | 29 "transparent_surface", |
30 "epslatex_implies_eps_filesuffix", | 30 "epslatex_implies_eps_filesuffix", |
31 "epslatexstandalone_terminal", | 31 "epslatexstandalone_terminal", |
32 "screen_coordinates_for_{lrtb}margin",}; | 32 "screen_coordinates_for_{lrtb}margin", |
33 "variable_GPVAL_TERMINALS"}; | |
33 | 34 |
34 if (isempty (has_features)) | 35 if (isempty (has_features)) |
35 gnuplot_version = __gnuplot_version__ (); | 36 gnuplot_version = __gnuplot_version__ (); |
36 versions = {"4.2.4", "4.3", "4.3", "4.2", "4.2", "4.3"}; | 37 versions = {"4.2.4", "4.3", "4.3", "4.2", "4.2", "4.3", "4.3"}; |
37 operators = {">", ">=", ">=", ">=", ">=", ">="}; | 38 operators = {">", ">=", ">=", ">=", ">=", ">=", ">="}; |
38 have_features = logical (zeros (size (features))); | 39 have_features = logical (zeros (size (features))); |
39 for n = 1 : numel (have_features) | 40 for n = 1 : numel (have_features) |
40 has_features(n) = compare_versions (gnuplot_version, versions{n}, operators{n}); | 41 has_features(n) = compare_versions (gnuplot_version, versions{n}, operators{n}); |
41 endfor | 42 endfor |
42 endif | 43 endif |