# HG changeset patch # User Ben Abbott # Date 1296604715 18000 # Node ID 5d68277d4496631b369eae5bdbfd39659872a832 # Parent 85934e0fcce9bba460ba09628e51639069983ff2 __gnuplot_has_feature__.m: Don't throw an error if gnuplot isn't installed. diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,8 @@ +2011-02-01 Ben Abbott + + * plot/__gnuplot_has_feature__.m: Don't throw an error if gnuplot + isn't installed. + 2011-02-01 John W. Eaton * plot/scatter3.m: Pass h to set, not ax. diff --git a/scripts/plot/__gnuplot_has_feature__.m b/scripts/plot/__gnuplot_has_feature__.m --- a/scripts/plot/__gnuplot_has_feature__.m +++ b/scripts/plot/__gnuplot_has_feature__.m @@ -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)));