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	Sat Nov 15 00:58:17 2008 +0100
+++ b/scripts/ChangeLog	Mon Nov 03 18:49:51 2008 -0500
@@ -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	Sat Nov 15 00:58:17 2008 +0100
+++ b/scripts/plot/__go_draw_axes__.m	Mon Nov 03 18:49:51 2008 -0500
@@ -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);