1

我在 matplotlib 中有一个绘图,我想xlim根据ylim. 怎么做 ?

目前我写:

plt.ylim(0, 10)

当我有一组从y=0到的数据时会出现问题y=20,然后xlim保持不变:我想让它自动重新缩放以对应于plt.ylim(0, 10).

4

0 回答 0