comparison scripts/plot/private/__next_line_style__.m @ 16959:22ec459cf7ba

Correction to allow multi-line plots to have multiple colors (bug #16955).
author Carl Osterwisch <costerwisch@generalcompression.com>
date Thu, 11 Jul 2013 13:55:10 -0400
parents 0dab17e69a55
children abf384f5d243
comparison
equal deleted inserted replaced
16958:ec6ced0ece87 16959:22ec459cf7ba
43 style_rotation = strsplit (style_rotation, "|"); 43 style_rotation = strsplit (style_rotation, "|");
44 endif 44 endif
45 nStyles = length (style_rotation); 45 nStyles = length (style_rotation);
46 if (reset_style || (nStyles < 2)) 46 if (reset_style || (nStyles < 2))
47 style_index = 1; 47 style_index = 1;
48 reset_style = false;
48 else 49 else
49 ## Executed when "hold all" is active 50 ## Executed when "hold all" is active
50 nChildren = length (get (ca, "Children")); 51 nChildren = length (get (ca, "Children"));
51 nColors = length (get (ca, "ColorOrder")); 52 nColors = length (get (ca, "ColorOrder"));
52 style_index = mod (floor (nChildren/nColors), nStyles) + 1; 53 style_index = mod (floor (nChildren/nColors), nStyles) + 1;