comparison scripts/plot/__gnuplot_has_feature__.m @ 8889:665b264b6a50

Compatible support of figure paper properties and resolution for the gnuplot backend.
author Ben Abbott <bpabbott@mac.com>
date Sat, 28 Feb 2009 19:36:09 -0500
parents 7d48766c21a5
children 7a7cf569528d
comparison
equal deleted inserted replaced
8888:0c7b0049c023 8889:665b264b6a50
26 persistent features has_features 26 persistent features has_features
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 33
33 if (isempty (has_features)) 34 if (isempty (has_features))
34 gnuplot_version = __gnuplot_version__ (); 35 gnuplot_version = __gnuplot_version__ ();
35 versions = {"4.2.4", "4.3", "4.3", "4.2", "4.2"}; 36 versions = {"4.2.4", "4.3", "4.3", "4.2", "4.2", "4.3"};
36 operators = {">", ">=", ">=", ">=", ">="}; 37 operators = {">", ">=", ">=", ">=", ">=", ">="};
37 have_features = logical (zeros (size (features))); 38 have_features = logical (zeros (size (features)));
38 for n = 1 : numel (have_features) 39 for n = 1 : numel (have_features)
39 has_features(n) = compare_versions (gnuplot_version, versions{n}, operators{n}); 40 has_features(n) = compare_versions (gnuplot_version, versions{n}, operators{n});
40 endfor 41 endfor
41 endif 42 endif