Mercurial > hg > octave-lyh
changeset 17323:3abed16370ad
Fix LineStyleOrder cycling when ColorOrder is a single value (bug #39854)
* __next_line_style__.m: Use number of colors instead of RGB values.
author | Stefan Mahr <dac922@gmx.de> |
---|---|
date | Thu, 22 Aug 2013 18:03:09 +0200 |
parents | 7f27a3cbdb41 |
children | 8e2906e2fb26 |
files | scripts/plot/private/__next_line_style__.m |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/private/__next_line_style__.m +++ b/scripts/plot/private/__next_line_style__.m @@ -45,7 +45,7 @@ else ## Executed when "hold all" is active nChildren = length (get (ca, "Children")); - nColors = length (get (ca, "ColorOrder")); + nColors = rows (get (ca, "ColorOrder")); style_index = mod (floor (nChildren/nColors), nStyles) + 1; endif options = __pltopt__ ("__next_line_style__",