diff scripts/plot/private/__next_line_style__.m @ 17315: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 abf384f5d243
children 1c89599167a6
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__",