【发布时间】:2019-07-02 08:13:58
【问题描述】:
我想固定刻度在对数刻度上的位置,以便它们在每个子图中都相同(参见图像中的红色注释)。 我的代码如下所示:
ax = fig.add_subplot(2,2, axis)
ax2 = ax.twinx()
ax2.set_yscale('log')
ax2.set_ylim(0,100)
现在,set_yscale=('log') 优化了每个子图的刻度间距。我更喜欢采用右上子图的刻度间距。
【问题讨论】:
标签: python matplotlib subplot