python - Show colorbar as log probability scale in matplotlib -
i trying show log probability colorbar in matplotlib. used next code.
hist2d(x, y, bins=50, cmap=plt.cm.cool, alpha=0.75) colorbar()
or
hist2d(x, y, bins=50, norm=matplotlib.colors.norm()) colorbar()
however, can't right one. can show want.
this figure generated matlab. (not mine) colorbar shows log probability. how can in matplotlib?
p.s.,
this code
hist2d(x, y, bins=50, norm=matplotlib.colors.norm()) colorbar()
generated
python matplotlib
No comments:
Post a Comment