diff scripts/plot/axis.m @ 13031:d2997525fcb6 stable

Fix for bug #34158. * plot/axis.m: Check that lower axis limits are less han upper limits.
author Ben Abbott <bpabbott@mac.com>
date Wed, 31 Aug 2011 18:19:17 -0400
parents f96b9b9f141b
children d7f74a8bdc46 0c3b1a359998
line wrap: on
line diff
--- a/scripts/plot/axis.m
+++ b/scripts/plot/axis.m
@@ -277,8 +277,8 @@
     endif
 
     for i = 1:2:len
-      if (ax(i) == ax(i+1))
-        error ("axis: limits(%d) cannot equal limits(%d)", i, i+1);
+      if (ax(i) >= ax(i+1))
+        error ("axis: limits(%d) must be less than limits(%d)", i, i+1);
       endif
     endfor