# HG changeset patch # User Ben Abbott # Date 1225756191 18000 # Node ID 534fd216278c74c4cf4a145db10f647236d29321 # Parent 349a555729a94ae712f0bd854fa4bed5eff39761 __go_draw_axes__.m: xticklabel should accept a numeric vector. diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- 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 + + * plot/__go_draw_axes__.m: xticklabel should accept a numeric vector. + 2008-09-28 Jaroslav Hajek * optimization/__fdjac__.m: New function file. diff --git a/scripts/plot/__go_draw_axes__.m b/scripts/plot/__go_draw_axes__.m --- 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);