擅长:python、mysql、java
<p>在一个<code>scatter</code>图中对颜色进行缩放时,已经提出了一个类似的问题:<a href="https://stackoverflow.com/questions/17201172/a-logarithmic-colorbar-in-matplotlib-scatter-plot">A logarithmic colorbar in matplotlib scatter plot</a></p>
<p>正如这里所指出的,matplotlibs文档中有一篇文章描述了colormaps的规范:<a href="http://matplotlib.org/devdocs/users/colormapnorms.html" rel="nofollow noreferrer">http://matplotlib.org/devdocs/users/colormapnorms.html</a></p>
<p>实际上,您可以通过添加关键字<code>, norm=matplotlib.colors.LogNorm()</code>来设置轮廓图的规范</p>