Matplotlib-users digest, Vol 1 #1075 - 7 msgs

Helge -

You are absolutely right. When you resize the window, the scale gets messed-up. It can be fixed by giving the axis(‘scaled’) command again, but it is a thorn in my eye.

What we need is some kind of event handler for a window resize.

Is there event handling built in the backend-basics that keeps track of whether a window gets resized? Shouldn’t there be an event handler for window-resized?

I am mostly interested in Tkinter. Anybody know that the event is?




I miss the equivalent to “axis image” in matlab, axis(‘scaled’) is

very close to beeing
the same except it does not preserve figure axis ranges and ratio when
I resize my window.

what methods are called after a window resize event in gtkagg anyway?