Clustering changes custom colors

Issue #484 resolved
Robert Leach created an issue

USE CASE: WHAT DO YOU WANT TO DO?

Not have clustering affect a user's custom colors. The resulting clustered data should have the same colors as the previously unclustered data.

STEPS TO REPRODUCE AN ISSUE (OR TRIGGER A NEW FEATURE)

  1. Open 11.cdt (attached)
  2. Adjust colors to be red 0, black 0.94, green 1.0 & click save
  3. Select Cluster->Hierarchical
  4. Select rows: "Leave unchanged"
  5. Click continue

CURRENT BEHAVIOR

Colors of the resulting clustered file are reset to mostly green.

Before clustering:

11cdtcolors.png

beforecluster.png

After clustering:

aftercluster.png

EXPECTED BEHAVIOR

Clustering does not change custom set colors.

DEVELOPERS ONLY SECTION

SUGGESTED CHANGE (Pseudocode optional)

Probably, a default color preset and min/max are being set for the newly loaded file. If the newly loaded file is the result of a cluster operation, the color settings should be passed along.

FILES AFFECTED (where the changes will be implemented) - developers only

unknown

LEVEL OF EFFORT - developers only

medium

COMMENTS

Found this while testing issue #456. I had noticed that the example I pasted in the comments of that issue had both axes clustered and the colors were adjusted to be all red, but my current 11.cdt file had only rows clustered and mostly green, so I adjusted the colors, then went to cluster only columns and the resulting display switched the colors back to green. Clustering shouldn't change the colors...

Comments (4)

  1. Robert Leach reporter

    Yeah, looks similar. Possibly related, but just enough different to not mark as duplicates, I'd say. I'd be curious to know if #227 is broken again...

  2. Log in to comment