comparison scripts/plot/__gnuplot_has_feature__.m @ 9191:ad33527d2e51

Have 'legend' inherit font properties from the parent axis.
author Ben Abbott <bpabbott@mac.com>
date Fri, 08 May 2009 21:11:05 -0400
parents ec159e991ee6
children b41a7b2bd6fc
comparison
equal deleted inserted replaced
9190:7a10410db2c6 9191:ad33527d2e51
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 "variable_GPVAL_TERMINALS",
34 "key_has_font_properties"};
34 35
35 if (isempty (has_features)) 36 if (isempty (has_features))
36 gnuplot_version = __gnuplot_version__ (); 37 gnuplot_version = __gnuplot_version__ ();
37 versions = {"4.3", "4.3", "4.3", "4.2", "4.2", "4.3", "4.3"}; 38 versions = {"4.3", "4.3", "4.3", "4.2", "4.2", "4.3", "4.3", "4.3"};
38 operators = {">=", ">=", ">=", ">=", ">=", ">=", ">="}; 39 operators = {">=", ">=", ">=", ">=", ">=", ">=", ">=", ">="};
39 have_features = logical (zeros (size (features))); 40 have_features = logical (zeros (size (features)));
40 for n = 1 : numel (have_features) 41 for n = 1 : numel (have_features)
41 has_features(n) = compare_versions (gnuplot_version, versions{n}, operators{n}); 42 has_features(n) = compare_versions (gnuplot_version, versions{n}, operators{n});
42 endfor 43 endfor
43 endif 44 endif