comparison scripts/plot/__gnuplot_has_feature__.m @ 8645:579f1f54cc3a

Add support for transparent surfaces
author Kai Habel
date Fri, 30 Jan 2009 14:52:32 -0500
parents a2dd2ffc504d
children 7d48766c21a5
comparison
equal deleted inserted replaced
8644:fac8c78b4fb9 8645:579f1f54cc3a
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 "transparent_patches", 28 "transparent_patches",
29 "transparent_surface",
29 "epslatex_implies_eps_filesuffix", 30 "epslatex_implies_eps_filesuffix",
30 "epslatexstandalone_terminal"}; 31 "epslatexstandalone_terminal"};
31 32
32 if (isempty (has_features)) 33 if (isempty (has_features))
33 gnuplot_version = __gnuplot_version__ (); 34 gnuplot_version = __gnuplot_version__ ();
34 versions = {"4.2.4", "4.2.4", "4.2", "4.2"}; 35 versions = {"4.2.4", "4.3", "4.3", "4.2", "4.2"};
35 operators = {">", ">", ">=", ">="}; 36 operators = {">", ">=", ">=", ">=", ">="};
36 have_features = logical (zeros (size (features))); 37 have_features = logical (zeros (size (features)));
37 for n = 1 : numel (have_features) 38 for n = 1 : numel (have_features)
38 has_features(n) = compare_versions (gnuplot_version, versions{n}, operators{n}); 39 has_features(n) = compare_versions (gnuplot_version, versions{n}, operators{n});
39 endfor 40 endfor
40 endif 41 endif