(no subject)

When using the Qt backend, resize events were not
getting passed along properly so the window was created
based off of some other criteria. The attatched patch
file will fix the problem and make the window be
resized appropriatly on construction.

matplotlib-qt_patch-vSVN-20060310_1355.diff (710 Bytes)

James Evans wrote:

When using the Qt backend, resize events were not
getting passed along properly so the window was created
based off of some other criteria. The attatched patch
file will fix the problem and make the window be
resized appropriatly on construction.

Admittedly I'm no Qt person (this was my opportunity to install Qt on my
system), but I couldn't find any problems with the current
implementation. Could you give a specific, reproducible problem case
that your patch fixes?

Cheers!
Andrew

Andrew,

The easiest way to see this bug is to use the QtAgg backend, then type the following:

import pylab
pylab.figure(figsize=(1, 1))
pylab.show()

and the window you get will most definitly not be using the sizes you set forth.

--James Evans

···

-----Original Message-----
From: Andrew Straw [mailto:strawman@…36…]
Sent: Sunday, March 12, 2006 12:01 PM
To: James Evans; matplotlib-devel@lists.sourceforge.net
Subject: Re: [matplotlib-devel] (no subject)

James Evans wrote:

When using the Qt backend, resize events were not
getting passed along properly so the window was created
based off of some other criteria. The attatched patch
file will fix the problem and make the window be
resized appropriatly on construction.

Admittedly I'm no Qt person (this was my opportunity to install Qt on my
system), but I couldn't find any problems with the current
implementation. Could you give a specific, reproducible problem case
that your patch fixes?

Cheers!
Andrew

James Evans wrote:

Andrew,

The easiest way to see this bug is to use the QtAgg backend, then type the following:

import pylab
pylab.figure(figsize=(1, 1))
pylab.show()
       
and the window you get will most definitly not be using the sizes you set forth.

OK, I see the issue using QtAgg. Patched in 2143.

I thought I tested the resize events by, well, resizing windows by
dragging the corner, and everything seemed fine. Strangely, though, the
patch I just applied doesn't seem necessary on a Qt (not QtAgg) backend.