反转轴可以通过翻转轴限制的法线顺序来使用递减轴。 123456789101112131415import matplotlib.pyplot as pltimport numpy as npt = np.arange(0.01, 5.0, 0.01)s = np.exp(-t)plt.plot(t, s)plt.xlim(5, 0) # decreasing timeplt.xlabel('decreasing time (s)')plt.ylabel('voltage (mV)')plt.title('Should be growing...')plt.grid(True)plt.show() 下载这个示例 下载python源码: invert_axes.py 下载Jupyter notebook: invert_axes.ipynb