Mercurial > hg > octave-lyh
changeset 8354:534fd216278c
__go_draw_axes__.m: xticklabel should accept a numeric vector.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Mon, 03 Nov 2008 18:49:51 -0500 |
parents | 349a555729a9 |
children | a8019b9644ca |
files | scripts/ChangeLog scripts/plot/__go_draw_axes__.m |
diffstat | 2 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -41,6 +41,10 @@ * miscellaneous/unpack.m: return directly after recursive handling of cell-strings +2008-11-03 Ben Abbott <bpabbott@mac.com> + + * plot/__go_draw_axes__.m: xticklabel should accept a numeric vector. + 2008-09-28 Jaroslav Hajek <highegg@gmail.com> * optimization/__fdjac__.m: New function file.
--- a/scripts/plot/__go_draw_axes__.m +++ b/scripts/plot/__go_draw_axes__.m @@ -1454,6 +1454,12 @@ if (ischar (labels)) labels = cellstr (labels); endif + if (isnumeric (labels)) + labels = num2str (real (labels(:))); + endif + if (ischar (labels)) + labels = permute (cellstr (labels), [2, 1]); + endif if (iscellstr (labels)) k = 1; ntics = numel (tics);