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
Unfortunately, there is not tool that does it in matplotlib itself. Is there a way to just get a colormap like this with specific vmin, center and vmax to use in matplotlib functions?
Also, is there a way to apply e.g. a LogNorm to the plot made with heatmap?
The text was updated successfully, but these errors were encountered:
You can't really get "just a colormap .. with a specific vmin, center, and vmax" because the limits aren't properties of the colormap, they're properties of the visualization that uses it. But you could use/adapt this: https://gist.github.com/phobson/7916777
To answer your second question, you can use the norm= argument from pcolormesh, but it will probably interact in unpredictable ways with the centering.
There is a beautiful way to center a colormap using seaborn in
heatmap
:Unfortunately, there is not tool that does it in
matplotlib
itself. Is there a way to just get a colormap like this with specific vmin, center and vmax to use inmatplotlib
functions?Also, is there a way to apply e.g. a
LogNorm
to the plot made withheatmap
?The text was updated successfully, but these errors were encountered: