在matplotlib中旋转坐标轴的刻度标签

2024-09-26 22:52:51 发布

您现在位置:Python中文网/ 问答频道 /正文

我想从here的绘图中旋转yticks标签

enter image description here

在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)    

但这帮不了我。我怎样才能达到这个结果


Tags: true绘图ifhere标签axneedout

热门问题