She*_*284 17 python plot numpy matplotlib
我在matplotlib中使用matshow(),默认情况下生成的数字顶部有xticklabels.有没有办法把xticklabels放在底部?
感谢任何帮助./ M
Sau*_*tro 21
尝试执行以下操作来调整x刻度位置:
ax.xaxis.set_ticks_position('bottom')
Run Code Online (Sandbox Code Playgroud)
同样,对于y刻度:
ax.yaxis.set_ticks_position('left')
Run Code Online (Sandbox Code Playgroud)