Mercurial > hg > octave-nkf
changeset 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 | 2470b1bf191a |
children | da355a1a6d44 |
files | scripts/ChangeLog scripts/plot/gnuplot_drawnow.m |
diffstat | 2 files changed, 2 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,5 +1,6 @@ 2010-09-13 Ben Abbott <bpabbott@mac.com> + * plot/gnuplot_drawnow.m: Use new function __gnuplot_has_terminal__(). * plot/private/__gnuplot_has_terminal__.m: New function. 2010-09-13 Jaroslav Hajek <highegg@gmail.com>
--- 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);