Opened 9 years ago

Closed 8 years ago

#296 closed enhancement (fixed)

Color Scale in Pseudo-3D distributions

Reported by: dhalling Owned by: gegorbet
Priority: normal Milestone: future
Component: ultrascan3 Version:
Keywords: review Cc:


A suggestion is to have more control over the color gradient among different data plots. Sometimes it is desirable to have several plots with the same color scale. This would add sophistication because another color scale can be used to compare with a second group of plots. Currently, the appropriate partial concentration is given for each plot; however, the color gradient can vary among plots because a partial concentration can have a different maximum. Below I have a rough way to correct for this.

After comparing all data sets, I found the scale that had the largest maximum partial concentration value and used that set as a standard for all of the data sets. Using the gradient maker and the value of the largest concentration value for each data set, I made a new color gradient with a maximum that was somewhere on the scale of the standard. For example, the standard is cyan-magenta-red-black on a range to 0-0.25 partial concentration. On one data set, the maximum concentration was 0.12 which corresponded to magenta on the standard scale. This data set would have gradient from cyan-magenta-etc... (sometimes ending on a color in between colors on the standard). Since the gradient maker is adjustable, I could also weight for the intermediate values so that all scales would show up with cyan from about 0.02-0.075, magenta from about 0.075-0.125, red from 0.125-0.21 and black from 0.22 on.

In terms of doing a similar function with US3, perhaps using a color gradient that is user-defined for a given partial concentration range would be useful. For example, the user can specify that the color scheme will be used for a concentration from 0-0.5 for all plots. An even better feature would be to select a color for each concentration range. For example, cyan from 0-0.05, magenta from 0.06-0.15, red from 0.15-0.4 and black from 0.41 to 0.5.

The functional routine would be most convenient in the pseudo-3d window, but having the option in the color gradient maker would not be bad either.

Change History (4)

comment:1 Changed 8 years ago by gegorbet

  • Owner changed from bdubbs to gegorbet
  • Status changed from new to assigned

A mod has been made and tested (and soon to be committed) whereby the maximum concentration for all plots is used whenever auto-plot is disabled or when looping through multiple plots. I think that this is a simpler, more straight-forward way to insure that multiple plots have equivalent scaling.

comment:2 Changed 8 years ago by gegorbet

  • Keywords review added

The pseudo3d_combine modification to use a single common zmax (maximum concentration) for multiple plot looping or when auto-limits is disabled has been committed.


comment:3 Changed 8 years ago by gegorbet

Reviews by both Brent and Borries revealed that the 1196 change did not truly scale the data to a common Z range in the no-Auto-limit/looping case. It forced a common color scale, but not a correct scaling of the data to the Z range.

This has been fixed in 1197. The ticket is (again) review-ready.

comment:4 Changed 8 years ago by dzollars

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.