Mercurial > hg > octave-lyh
changeset 13939:fc6ebd31f40f
Support linestyleorder as cellstr.
* scripts/plot/private/__next_line_style__.m: Support linestyleorder value as
cell array of strings.
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Sat, 26 Nov 2011 21:58:59 +0000 |
parents | 3cb8f1fe108c |
children | bf209050014f |
files | scripts/plot/private/__next_line_style__.m |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/private/__next_line_style__.m +++ b/scripts/plot/private/__next_line_style__.m @@ -39,7 +39,10 @@ style_index = 1; endif elseif (reset || isempty (style_rotation)) - style_rotation = strsplit (get (gca (), "linestyleorder"), "|"); + style_rotation = get (gca (), "linestyleorder"); + if (ischar (style_rotation)) + style_rotation = strsplit (style_rotation, "|"); + endif num_styles = length (style_rotation); style_index = 1; endif