Mercurial > hg > octave-lyh
diff scripts/plot/gnuplot_drawnow.m @ 10968:f5c863803e29
gnuplot_drawnow.m: Use new function __gnuplot_has_terminal__().
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Mon, 13 Sep 2010 20:57:44 -0400 |
parents | dd6b90f44ae5 |
children | a8ac114ec9ab |
line wrap: on
line diff
--- a/scripts/plot/gnuplot_drawnow.m +++ b/scripts/plot/gnuplot_drawnow.m @@ -41,14 +41,7 @@ default_plot_stream = get (h, "__plot_stream__"); unwind_protect plot_stream = __gnuplot_open_stream__ (2, h); - if (__gnuplot_has_feature__ ("variable_GPVAL_TERMINALS")) - available_terminals = __gnuplot_get_var__ (plot_stream, "GPVAL_TERMINALS"); - available_terminals = regexp (available_terminals, "\\b\\w+\\b", "match"); - gnuplot_supports_term = any (strcmpi (available_terminals, - gnuplot_trim_term (term))); - else - gnuplot_supports_term = true; - endif + gnuplot_supports_term = __gnuplot_has_terminal__ (term, plot_stream); if (gnuplot_supports_term) enhanced = gnuplot_set_term (plot_stream (1), true, h, term, file); __go_draw_figure__ (h, plot_stream(1), enhanced, mono);