import matplotlib.pyplot as plt import numpy as np x = np.linspace(-1,1, 100) y = -x**2 plt.xlim(-1.2,1.2) plt.ylim(-1,0.2) plt.plot(x,y) plt.show()