diff scripts/plot/axis.m @ 5627:0f6a0a85a857

[project @ 2006-02-16 20:13:35 by jwe]
author jwe
date Thu, 16 Feb 2006 20:13:35 +0000
parents bdd6e60e54fb
children ace8d8d26933
line wrap: on
line diff
--- a/scripts/plot/axis.m	Wed Feb 15 20:25:40 2006 +0000
+++ b/scripts/plot/axis.m	Thu Feb 16 20:13:35 2006 +0000
@@ -246,6 +246,12 @@
       error ("axis: expecting vector with 2, 4, or 6 elements");
     endif
 
+    for i = 1:2:len
+      if (ax(i) == ax(i+1))
+	error ("axis: limits(%d) cannot equal limits(%d)", i, i+1);
+      endif
+    endfor
+
     __current_axis__ = reshape (ax, 1, len);
 
     if (len > 1)