Replies: 1 comment
-
@daniel-caichac-DHI, @stkistner matplotlib wizards, have you tried this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
How to use TwoSlopeNorm in colorbar? The values of colorbar range from -6 to 2. The colorbar is bounded by 0 and divided into two ranges of -6 to 0 and 0 to 2 (colorbar 3 in figure), however, the color map of spatial field is undesirable. How to adjust the spatial field colormap matching to the colorbar 3? (colorbar 1 is the origianl colorbar of mikeio, and colorbar 2 is the shared colorbar for two graphs)
My code is below:
The Twoslopenorm setting of colorbar refer to link:
https://matplotlib.org/stable/users/explain/colors/colormapnorms.html#twoslopenorm-different-mapping-on-either-side-of-a-center
Beta Was this translation helpful? Give feedback.
All reactions