Mercurial > hg > octave-nkf
diff scripts/plot/__gnuplot_drawnow__.m @ 15708:916ef285522a
Use the Qt gnuplot terminal only if available when using the GUI
* octave-gui.cc (octave_start_gui): Do not set GNUTERM.
* __gnuplot_drawnow__.m: Use the qt terminal only if gnuplot supports it and
the GUI is running.
author | Mike Miller <mtmiller@ieee.org> |
---|---|
date | Fri, 30 Nov 2012 20:41:30 -0500 (2012-12-01) |
parents | 860b4edb0bea |
children | 1ea5f8a4a914 |
line wrap: on
line diff
--- a/scripts/plot/__gnuplot_drawnow__.m +++ b/scripts/plot/__gnuplot_drawnow__.m @@ -333,7 +333,9 @@ term = getenv ("GNUTERM"); ## If not specified, guess the terminal type. if (isempty (term) || ! __gnuplot_has_terminal__ (term, plot_stream)) - if (ismac ()) + if (isguirunning () && __gnuplot_has_terminal__ ("qt", plot_stream)) + term = "qt"; + elseif (ismac ()) term = "aqua"; elseif (! isunix ()) term = "windows";