I am using matplotlib and Tkinter to plot some data. When I press a button, my graph is created in an independent window of given size. If I click again on the button, the graph is again created in the same position. Now, if I manually resize the window after pressing the button for the first time, the next time I press the button the window gets back to the original size that I set. Is there any way to 'read' the window size that I have manually modified with the mouse cursor so the next time the button is pressed the figure appears in the same window?