Skip to content
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

Colour scheme is now consistent within MSlice #756

Merged
merged 1 commit into from
May 24, 2022

Conversation

SilkeSchomann
Copy link
Collaborator

Instead of using the colour name directly in set_option now the name_to_color function from mslice.models.colors is used. This ensures that a colour name is always mapped to the same hex value. The hex mapping for basic colours has been updated as well to reflect the colour scheme changes within matplotlib. The hex values are now hardcoded instead of generated dynamically on start up to speed up plotting. It is still possible to use colours that are not included in the basic colour mapping though.

To test:

Create a cut plot with several lines and change a line setting, for instance 'Show Legends'. After clicking on Ok the colours of the lines should not change.

Also, try to re-test #550 as this should still be fixed.

Fixes #733

@MialLewis MialLewis self-assigned this May 24, 2022
Copy link
Contributor

@MialLewis MialLewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested, all working including hex mapped and non-hex mapped colors. Previous fix for #550 still works.

@SilkeSchomann SilkeSchomann merged commit ecff06b into release-next May 24, 2022
@SilkeSchomann SilkeSchomann deleted the 733_colour_scheme_problem branch May 24, 2022 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants