【问题标题】:Matplotlib hexbin log scale colorbar tick labels as exponentsMatplotlib hexbin 对数刻度颜色条刻度标签作为指数
【发布时间】:2015-07-18 06:30:11
【问题描述】:

当使用 matplotlibs hexbin 和对数刻度颜色 (bins="log") 创建二维直方图时,颜色条会显示指数而不是值:

如何让它在上图中的 x 和 y 轴中显示值和指数刻度线?

【问题讨论】:

    标签: python matplotlib plot histogram


    【解决方案1】:

    部分答案是使用norm=matplotlib.colors.LogNorm() 而不是bins='log'。不过,这不会显示较小的刻度线

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-06-14
      • 2020-02-18
      • 1970-01-01
      • 2014-03-22
      • 1970-01-01
      • 2020-01-05
      相关资源
      最近更新 更多