Spyder console turn off interactive matplotlib plotting
<p>I'm doing some plotting using matplotlib in the Spyder GUI.  I just want these figures to be made quietly in the background and save to a file path.  I'm running my scripts from the console and while the figures get made and saved fine, I can't stop them all popping up in their own little windows (there are about 240 graphs so clearly this is causing memory issues).</p>

<p>I have scattered the command plt.ioff() generously throughout the script but it doesn't seem to help</p>

<p>Any ideas?
Cheers</p>