【发布时间】:2013-04-03 09:01:28
【问题描述】:
我有一个类似的问题: Python Matplotlib Y-Axis ticks on Right Side of Plot
我修复了将 y 轴刻度标签放在绘图右侧的问题,但我也想在左侧恢复 y 刻度。
我试过了:
yax.set_ticks_position('both')
但我明白了:
ax0.set_ticks_position('both')
AttributeError: 'AxesSubplot' object has no attribute 'set_ticks_position'
我该如何解决这个问题?
【问题讨论】:
标签: python matplotlib