Mercurial > hg > octave-terminal
changeset 5627:0f6a0a85a857
[project @ 2006-02-16 20:13:35 by jwe]
author | jwe |
---|---|
date | Thu, 16 Feb 2006 20:13:35 +0000 |
parents | 3236b4d98fde |
children | 53d15d4c8dd7 |
files | scripts/ChangeLog scripts/plot/axis.m |
diffstat | 2 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2006-02-16 Bill Denney <denney@seas.upenn.edu> + + * axis.m: Catch limits that are the same and return an error. + 2006-02-15 Dmitri A. Sergatskov <dasergatskov@gmail.com> * plot/print.m: Accept emf device option to support Enhanced
--- 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)