Get size of resized matplotlib plot window
I found myself a solution, this is the code:
plt.Figure()thismanager = get_current_fig_manager()thismanager.window.wm_geometry("500x500+890+300") #sets original size and positionbutton = Tkinter.Button(self,command=self.Click)def Click(self): thismanager = get_current_fig_manager() thismanager.set_window_title('Title') plt.clf() plt.xlabel('Xaxis',fontsize=16) im=imshow(variable, cmap='gray', origin='lower',vmin=0,vmax=255,interpolation='nearest') cb=colorbar() cb.set_label('Label',fontsize=16) show()