Hi, I would like to maximize a window that is generated by pyplot.
Example code: import numpy as np import matplotlib.pyplot as plt t = np.arange(0., 5., 0.2) line, = plt.plot(t, t**2, 'bo') plt.show() I found code on how to do this in Tkinter mailing: def maximize_toplevel( widget ): toplevel = root.winfo_toplevel() try: # On MS Windows one can set the "zoomed" state. toplevel.wm_state( 'zoomed' ) except: w = root.winfo_screenwidth() h = root.winfo_screenheight() - 60 geom_string = "%dx%d+0+0" % (w,h) toplevel.wm_geometry( geom_string ) return But I have no clue how to apply this in the pyplot environment. In other words, how do I get from the plt.show() call to something that can be passed to the maximize_toplevel function? Thanks for any hint UV ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users