import numpy as np x = np.linspace(-50,50) y = np.exp(-(x/10)**2) import matplotlib.pyplot as plt plt.plot(x,y) plt.savefig('g.jpg') plt.savefig('g.png') plt.savefig('g.pdf') #plt.show()