You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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 linek:
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