【问题标题】:How do I get the current limits of a matplotlib axis?如何获得 matplotlib 轴的当前限制?
【发布时间】:2014-01-09 15:50:50
【问题描述】:

给定一个matplotlib 轴,我如何找到它当前的最小和最大限制;例如,之前可能在 ax.set(xscale='log', xlim=...) 中设置过?

【问题讨论】:

    标签: matplotlib range axes


    【解决方案1】:

    xmin,xmax = ax.get_xlim()

    ymin,ymax = ax.get_ylim()

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-09-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-09-18
      • 1970-01-01
      • 2018-04-27
      • 2017-02-05
      相关资源
      最近更新 更多