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.
我正在尝试在相反的轴上绘制用 imshow 制作的图形的 yticklabels。我还需要设置刻度标签,以便我需要控制这个轴。有谁知道如何做到这一点?
提前致谢。
尝试这个:
import matplotlib.pyplot as plt ax = plt.subplot(111) plt.imshow(...) ax.yaxis.set_tick_params(labelright=True, labelleft=False)