New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XS Chart Colors #27
Comments
The way colors are assigned to cross sections changed for the new release:
Perhaps we need an option that lets the user control how colors are assigned. I can conceive of three possibilities:
|
Philip, Option 3 is definitely the best. The most common way we use the plotter is to compare multiple surveys at a single cross section location, then move to a different cross section location. (I almost never compare multiple cross section locations in the same window.) |
I have an elegant solution that avoids the need for any messy "options setting" to control how colors are assigned. The code now detects when either just one cross section or one survey is selected and retains the appropriate colors. If multiple surveys and multiple cross sections are selected then the colors are assigned as before. Single cross section with multiple surveysThis is the main use case for @JohnShelley The user selects a single cross section and then adjusts which surveys are selected. The color used for a particular survey is always the same. Single survey multiple cross sectionsIn this situation cross sections retain their color as different surveys are selected. Multiple Surveys and multiple cross sectionsThis is how the software worked before this fix. Note that as soon as the user triggers this scenario (multiple of both survey and cross section) all colors in the chart are reset. i.e. the image below shows some of the same data as the preceding set of images but all the colors are new. |
The colors change from XS to XS in the plot cross sections tool. They should stay the same so the user can scroll through many pairs and always know which year is which. Each year can randomly be assigned a color or you can store a list of colors that get applied to the first, second, third, etc. surveys that are displayed (better, because it allows for good contrast amongst colors.) But switching cross sections needs to maintain the same colors.
The text was updated successfully, but these errors were encountered: