%matplotlib inline
import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mlt
x = np.arange(1, 0, -0.001)
y = (-3 * x * np.log(x) + np.exp(-(50 * (x - 1 / np.e)) ** 4) / 25) / 2
plt.figure(figsize=(5,7))
plt.plot(y, x, 'r-', linewidth=2)
plt.grid(True)
plt.show()
完美胸.png