-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
API: rename DivergingNorm to TwoSlopeNorm #15450
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
API: rename DivergingNorm to TwoSlopeNorm #15450
Conversation
Docs build warnings -> failure:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a wording suggestion, and I spotted one of the two sources of CircleCI warnings, but otherwise this looks fine.
|
||
``DivergingNorm`` was a misleading name because it did not diverge (in | ||
the sense that it is not its self diverging, but is best used with | ||
diverging norms). It has been renamed to `.TwoSlopeNorm` to better represent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alternative wording: "...misleading name; although the norm was developed with the idea that it would likely be used with diverging colormaps, the word 'diverging' does not describe or evoke the norm's mapping function. Since that function is monotonic, continuous, and piece-wise linear with two segments, the norm has been renamed to .TwoSlopeNorm
."
tutorials/colors/colormapnorms.py
Outdated
# DivergingNorm: Different mapping on either side of a center | ||
# ----------------------------------------------------------- | ||
# TwoSlopeNorm: Different mapping on either side of a center | ||
# --------------------------------------------------------- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aha! There is the "too short underline".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My first pass at this I spelled it TwoSlopNorm
and apparently did not fix up all of the fixes...
8e3d081
to
64c2bac
Compare
The docs build clean locally, hopefully circle argrees. |
…450-on-v3.2.x Backport PR #15450 on branch v3.2.x (API: rename DivergingNorm to TwoSlopeNorm)
closes #15336
attn @ivanov @efiring @ImportanceOfBeingErnest