resize a window

Hello,

I would like to resize a matplotlib window from a command in ipython. I don't want to use the mouse to do this (for different reasons). Do you know if it's possible to do this?

Thanks

N.