Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 matplotlib 中使用 matshow() 并且默认情况下生成的数字在顶部有 xticklabels。有没有办法将 xticklabels 放在底部?
感谢您对此的任何帮助。/米
尝试执行以下操作来调整 x 刻度位置:
ax.xaxis.set_ticks_position('bottom')
同样,对于 y 刻度:
ax.yaxis.set_ticks_position('left')