使用axis方法解决 import matplotlib.pyplot as plt plt.axis([0, 0.01, 0, 1])# 为设置x、y轴的范围,如此行为x坐标轴显示范围为0~0.01,y轴显示范围为0~1