I\'m studying matplotlib and don\'t know how to just save the graph and not print it on the screen.
So I\'ve done some research on the Internet, many answers said
plt.plot(x,y) plt.savefig('path/figure_filename.jpg',dpi=300)