Pyplot will only display the shape window if
matplotlib.rcParams['interactive'] == True
This is so if you:
- previous called
plt.ion()in script or - equivalently called
matplotlib.interactive(True), or - started an ipython session with an option
--pylabon the command line.
, plt.show() , . , , ( ).
( , ):
plt.show() , . plt.get_backend() - 'agg', , .
,
import matplotlib
matplotlib.use('MacOSX')
script . matplotlib.
, , matplotlib rcfile. , matplotlib.matplotlib_fname().