# HG changeset patch # User jwe # Date 1140120815 0 # Node ID 0f6a0a85a857e0107e0544cf0459bde4bb305712 # Parent 3236b4d98fde9f74ba1d54b35cbab60ecc30279d [project @ 2006-02-16 20:13:35 by jwe] diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2006-02-16 Bill Denney + + * axis.m: Catch limits that are the same and return an error. + 2006-02-15 Dmitri A. Sergatskov * plot/print.m: Accept emf device option to support Enhanced diff --git a/scripts/plot/axis.m b/scripts/plot/axis.m --- a/scripts/plot/axis.m +++ b/scripts/plot/axis.m @@ -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)