2024-09-26 22:52:51 发布
网友
我想从here的绘图中旋转yticks标签
在matplotlibdocumentation中,我发现:
set_tick_out(b) set True if tick need to be rotated by 180 degree.
我试过:
ax.axis['yzero'].major_ticks.set_tick_out(True)
以及
ax.axis['yzero'].minor_ticks.set_tick_out(True)
但这帮不了我。我怎样才能达到这个结果
ax.axis['yzero'].major_ticks.set_tick_out(True)改变滴答声的方向
ax.axis['yzero'].major_ticklabels.set_axis_direction('right')更改记号标签的方向
ax.axis['yzero'].major_ticklabels.set_axis_direction('right')
ax.axis['yzero'].major_ticks.set_tick_out(True)
改变滴答声的方向ax.axis['yzero'].major_ticklabels.set_axis_direction('right')
更改记号标签的方向相关问题 更多 >
编程相关推荐