# HG changeset patch # User Stefan Hepp # Date 1259046120 -3600 # Node ID 52d8ad5d28d6925ee65331f03344928d89ccbb23 # Parent ae70ce64beb7968ea0417dab36a62dddd0941ca3 gnuplot_drawnow.m (gnuplot_default_term): don't set term to x11 unless DISPLAY is set diff -r ae70ce64beb7 -r 52d8ad5d28d6 doc/interpreter/contributors.in --- a/doc/interpreter/contributors.in Tue Nov 24 08:00:32 2009 +0100 +++ b/doc/interpreter/contributors.in Tue Nov 24 08:02:00 2009 +0100 @@ -72,6 +72,7 @@ Dave Hawthorne Daniel Heiserer Martin Helm +Stefan Hepp Yozo Hida Ryan Hinton Roman Hodek diff -r ae70ce64beb7 -r 52d8ad5d28d6 scripts/ChangeLog --- a/scripts/ChangeLog Tue Nov 24 08:00:32 2009 +0100 +++ b/scripts/ChangeLog Tue Nov 24 08:02:00 2009 +0100 @@ -1,3 +1,8 @@ +2009-11-02 Stefan Hepp + + * plot/gnuplot_drawnow.m (gnuplot_default_term): Don't set term to + x11 unless DISPLAY is set. + 2009-11-11 John W. Eaton * plot/stairs.m (__stairs__): Correct nargin check. New demos. diff -r ae70ce64beb7 -r 52d8ad5d28d6 scripts/plot/gnuplot_drawnow.m --- a/scripts/plot/gnuplot_drawnow.m Tue Nov 24 08:00:32 2009 +0100 +++ b/scripts/plot/gnuplot_drawnow.m Tue Nov 24 08:02:00 2009 +0100 @@ -326,8 +326,10 @@ term = "aqua"; elseif (! isunix ()) term = "windows"; + elseif (! isempty (getenv ("DISPLAY"))) + term = "x11"; else - term = "x11"; + term = "unknown"; endif endif endfunction