Skip to content

DOC: Improve colormap normalization example #27729

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

Merged
merged 1 commit into from
Feb 6, 2024

Conversation

QuLogic
Copy link
Member

@QuLogic QuLogic commented Feb 1, 2024

PR summary

  • Turn each norm into a headed section.
  • Link to each norm directly in text.
  • Consistently use Z as data variable, and pass norms (or vmin) in the same order for every example.
  • Label the colour bars.
  • Tweak some descriptions to be clearer.
  • Change data for SymLogNorm and use it for the custom norm and BoundaryNorm, in order to match their descriptions.
    Fixes [Doc]: Text in the colormap normalization gallery doesn't match the code #27727

PR checklist

@github-actions github-actions bot added the Documentation: examples files in galleries/examples label Feb 1, 2024
@igurin-invn
Copy link
Contributor

It would also be nice to fix the colorbar tick labels for the symlog case (see the relevant example).

Copy link
Member

@timhoffm timhoffm left a comment

Choose a reason for hiding this comment

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

@timhoffm
Copy link
Member

timhoffm commented Feb 2, 2024

Doc build failure is unrelated (see #27736) - sorry for the fuzz.

- Turn each norm into a headed section.
- Link to each norm directly in text.
- Consistently use `Z` as data variable, and pass norms (or `vmin`) in
  the same order for every example.
- Label the colour bars.
- Tweak some descriptions to be clearer.
- Change data for SymLogNorm and use it for the custom norm and
  BoundaryNorm, in order to match their descriptions.
@timhoffm timhoffm merged commit 85213e2 into matplotlib:main Feb 6, 2024
@timhoffm timhoffm added this to the v3.9.0 milestone Feb 6, 2024
@QuLogic QuLogic deleted the cmap-norm branch February 6, 2024 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation: examples files in galleries/examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Doc]: Text in the colormap normalization gallery doesn't match the code
3 participants