Mercurial > octave-nkf
diff scripts/plot/__gnuplot_has_feature__.m @ 12325:5d68277d4496
__gnuplot_has_feature__.m: Don't throw an error if gnuplot isn't installed.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Tue, 01 Feb 2011 18:58:35 -0500 |
parents | c792872f8942 |
children |
line wrap: on
line diff
--- a/scripts/plot/__gnuplot_has_feature__.m Tue Feb 01 16:25:15 2011 -0500 +++ b/scripts/plot/__gnuplot_has_feature__.m Tue Feb 01 18:58:35 2011 -0500 @@ -37,7 +37,12 @@ "key_has_font_properties"}; if (isempty (has_features)) - gnuplot_version = __gnuplot_version__ (); + try + gnuplot_version = __gnuplot_version__ (); + catch + ## Don't throw an error if gnuplot isn't installed + gnuplot_version = "0.0.0"; + end_try_catch versions = {"4.2.5", "4.4", "4.4", "4.4", "4.2", "4.2", "4.4", "4.4", "4.4"}; operators = {">=", ">=", ">=", ">=", ">=", ">=", ">=", ">=", ">="}; have_features = logical (zeros (size (features)));