Mercurial > hg > octave-nkf
comparison scripts/plot/appearance/axis.m @ 18824:cf3db95a75f0
axis.m: Fix regression when accepting input handle (cset 5032ac119d52).
* axis.m: When setting xlim, ylim, zlim to numeric values the functions
must be called with the desired axis handle so that id doesn't always
operate on gca.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 24 Apr 2014 07:13:37 -0700 |
parents | 5032ac119d52 |
children | 78fac67300e8 |
comparison
equal
deleted
inserted
replaced
18822:e42843ceff48 | 18824:cf3db95a75f0 |
---|---|
297 error ("axis: limits(%d) must be less than limits(%d)", i, i+1); | 297 error ("axis: limits(%d) must be less than limits(%d)", i, i+1); |
298 endif | 298 endif |
299 endfor | 299 endfor |
300 | 300 |
301 if (len > 1) | 301 if (len > 1) |
302 xlim (ax(1:2)); | 302 xlim (ca, ax(1:2)); |
303 endif | 303 endif |
304 | 304 |
305 if (len > 3) | 305 if (len > 3) |
306 ylim (ax(3:4)); | 306 ylim (ca, ax(3:4)); |
307 endif | 307 endif |
308 | 308 |
309 if (len > 5) | 309 if (len > 5) |
310 zlim (ax(5:6)); | 310 zlim (ca, ax(5:6)); |
311 endif | 311 endif |
312 | 312 |
313 else | 313 else |
314 error ("axis: expecting no args, or a vector with 2, 4, or 6 elements"); | 314 error ("axis: expecting no args, or a vector with 2, 4, or 6 elements"); |
315 endif | 315 endif |