【问题标题】:Matplotlib clean all the text along the axis but leave the frameMatplotlib 清除沿轴的所有文本但保留框架
【发布时间】:2017-12-31 21:51:12
【问题描述】:

我想删除 matplotlib 中 x/y 轴周围的所有文本和刻度。

但要保留图中的框架和所有文本,例如传说等

最终结果应该看起来像一个包含图像的盒子。

谢谢。

【问题讨论】:

    标签: python matplotlib axis


    【解决方案1】:

    我找到了。

    ax.axes.get_yaxis().set_visible(False)
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-08-15
      • 1970-01-01
      • 2016-07-28
      • 2014-03-27
      • 1970-01-01
      相关资源
      最近更新 更多