import matplotlib.pyplot as plt import numpy as np x = np.linspace(-4, 8, 100) plt.plot(x, np.exp(x)) plt.show()