Resize subplots frame to maximum or new window

for a frame of image slices --> fig, axes=plt.subplots(nrows=2, ncols=36) how can I maximize the frame ? I have tried ==> mng = plt.get_current_fig_manager()
mng.resize(*mng.window.maxsize()) but i get AttributeError: ‘FigureManagerBase’ object has no attribute ‘window’. please assist.

See attached screenshot.

It looks like you’re using Spyder. I’m pretty sure that it’s doing fancy things to the matplotlib plots to put them “inline” with your console. Can you add the following line to your code:

plt.show()

and then run your file in a command line as python mycode.py? (replace mycode with the name of your .py file.)