📜  将颜色条添加到 2d hist - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:36.545000             🧑  作者: Mango

代码示例1
fig, ax = plt.subplots()
h = ax.hist2d(x, y, bins=40, norm=LogNorm())
fig.colorbar(h[3], ax=ax)