comparison scripts/plot/gnuplot_drawnow.m @ 9771:4634a0e9ea1b

gnuplot_drawnow.m (gnuplot_default_term): don't set term to x11 unless DISPLAY is set
author Stefan Hepp <stefan@stefant.org>
date Mon, 02 Nov 2009 21:34:04 -0500
parents 40acd13920e3
children ccad98db781b
comparison
equal deleted inserted replaced
9770:1a69a9c0ee00 9771:4634a0e9ea1b
326 if (isempty (term)) 326 if (isempty (term))
327 if (ismac ()) 327 if (ismac ())
328 term = "aqua"; 328 term = "aqua";
329 elseif (! isunix ()) 329 elseif (! isunix ())
330 term = "windows"; 330 term = "windows";
331 else 331 elseif (! isempty (getenv ("DISPLAY")))
332 term = "x11"; 332 term = "x11";
333 else
334 term = "unknown";
333 endif 335 endif
334 endif 336 endif
335 endfunction 337 endfunction
336 338
337 function [term, opts] = gnuplot_trim_term (string) 339 function [term, opts] = gnuplot_trim_term (string)