changeset 13108:d44d7f3c7998

don't allow computed axis limits to be empty (bug #) * graphics.cc (axes::properties::get_axis_limits): In case of log log plot with all values negative, return default axes limits instead of empty matrix.
author John W. Eaton <jwe@octave.org>
date Tue, 06 Sep 2011 18:01:04 -0400
parents 353c71c76f22
children 2d5035847529
files src/graphics.cc
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/graphics.cc	Tue Sep 06 14:58:44 2011 -0400
+++ b/src/graphics.cc	Tue Sep 06 18:01:04 2011 -0400
@@ -5184,8 +5184,8 @@
         {
           if (xisinf (min_pos))
             {
-              // warning ("axis: logscale with no positive values to plot");
-              return retval;
+              // FIXME -- need to handle log plots with all negative data.
+              return default_lim ();
             }
 
           if (min_val <= 0)