Bug 87015 - plot colors can easily repeat in a plot
Summary: plot colors can easily repeat in a plot
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 1.x
Platform: unspecified Linux
: HI normal
Target Milestone: ---
Assignee: Andrew Walker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-12 05:19 UTC by Netterfield
Modified: 2004-08-26 01:33 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.