Bug 87015

Summary: plot colors can easily repeat in a plot
Product: [Applications] kst Reporter: Netterfield <netterfield>
Component: generalAssignee: Andrew Walker <arwalker>
Status: RESOLVED FIXED    
Severity: normal    
Priority: HI    
Version: 1.x   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Netterfield 2004-08-12 05:19:09 UTC
Version:           0.99-devel (using KDE 3.2 BRANCH >= 20040204, Mandrake Linux Cooker i586 - Cooker)
Compiler:          gcc version 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)
OS:                Linux (i686) release 2.6.2-3mdk

How to reproduce:
in the data wizard create 24 curves and place them in 12 plots.  The colors of the two curves in each plot will be the same - hence, indistinguishable. (there are 12 kst colors).

Correct behavior: the data wizard should not automatically assign identical colors to curves in a plot, (unless we end up with more than NColor curves in a plot.)
Comment 1 George Staikos 2004-08-12 14:56:13 UTC
What would you prefer here?  We could keep a different colorsequence for each plot, but then all plots would have the same colors.  Then we would need to sort of "randomize" the starting point?  Or even increment the starting point on each new sequence?
Comment 2 Andrew Walker 2004-08-26 01:33:33 UTC
Check that the next color in the sequence is not already in use in the plot. If it is then use the least-used color in that plot.