Given a matplotlib轴,如何找到其当前的最小和最大限制;例如,正如之前可能设置的那样ax.set(xscale='log', xlim=...)?
matplotlib
ax.set(xscale='log', xlim=...)
xmin,xmax = ax.get_xlim()
ymin,ymax = ax.get_ylim()