# HG changeset patch # User jwe # Date 1182784327 0 # Node ID c0370a971fef426a7e2f7b5123f1ab458859701a # Parent 2de995da10b8531c4eae33372ab4a514010efda4 [project @ 2007-06-25 15:12:07 by jwe] diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,9 @@ +2007-06-25 John W. Eaton + + * plot/__go_draw_axes__.m: Handle char arrays for tic labels. + Recycle tic labels if necessary. From Juhani Saastamoinen + . + 2007-06-20 John W. Eaton * strings/index.m: Allow strings to be empty. 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 @@ -910,10 +910,13 @@ if (isempty (tics)) fprintf (plot_stream, "unset %stics;\n", ax); elseif (strcmp (labelmode, "manual") && ! isempty (labels)) - k = 1; - ntics = numel (tics); - nlabels = numel (labels); + if (ischar (labels)) + labels = cellstr (labels); + endif if (iscellstr (labels)) + k = 1; + ntics = numel (tics); + nlabels = numel (labels); fprintf (plot_stream, "set format %s \"%%s\";\n", ax); fprintf (plot_stream, "set %stics (", ax); for i = 1:ntics