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
You can try to switch the backend. Apparently Spyder loads matplotlib before you do, and use has no effect. This may be helpful: How to switch backends in matplotlib / Python
use