two issues with the QtAgg backend

I'm having two problems with the QtAgg backend. If I do:

from pylab import *
plot([1,2])

[<matplotlib.lines.Line2D instance at 0x2aaab1ead830>]

show()

My figure window should be 8in x 6in, but instead it is 6in tall and as wide
as my screen will allow. So thats the first issue. The second is this: if I
close that window, and then do

plot([1,2])

[<matplotlib.lines.Line2D instance at 0x2aaab1ebbcf8>]

show()

I get the following traceback:

Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib64/python2.4/site-packages/matplotlib/backends/backend_qt.py",
line 47, in show
manager.window.show()
RuntimeError: underlying C/C++ object has been deleted

I'm using qt version 3.3.4, with cvs mpl 0.86.2, on a gentoo linux system. The
only nondefault rc setting is the choice of backend.

Darren

Respectfully: Is the QtAgg backend supported?

···

On Saturday 18 February 2006 6:01 pm, Darren Dale wrote:

I'm having two problems with the QtAgg backend. If I do:
>>> from pylab import *
>>> plot([1,2])

[<matplotlib.lines.Line2D instance at 0x2aaab1ead830>]

>>> show()

My figure window should be 8in x 6in, but instead it is 6in tall and as
wide as my screen will allow. So thats the first issue. The second is this:
if I close that window, and then do

>>> plot([1,2])

[<matplotlib.lines.Line2D instance at 0x2aaab1ebbcf8>]

>>> show()

I get the following traceback:

Traceback (most recent call last):
File "<stdin>", line 1, in ?
File
"/usr/lib64/python2.4/site-packages/matplotlib/backends/backend_qt.py",
line 47, in show
manager.window.show()
RuntimeError: underlying C/C++ object has been deleted

I'm using qt version 3.3.4, with cvs mpl 0.86.2, on a gentoo linux system.
The only nondefault rc setting is the choice of backend.

Darren

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
matplotlib-devel List Signup and Options

--
Darren S. Dale, Ph.D.
dd55@...143...

Darren,
I'll have someone take a look at it soon. We're right in the middle of a big delivery so we don't really have a lot of time to spend on this right now...

Ted

···

At 08:20 AM 2/26/2006, Darren Dale wrote:

Respectfully: Is the QtAgg backend supported?

On Saturday 18 February 2006 6:01 pm, Darren Dale wrote:
> I'm having two problems with the QtAgg backend. If I do:
> >>> from pylab import *
> >>> plot([1,2])
>
> [<matplotlib.lines.Line2D instance at 0x2aaab1ead830>]
>
> >>> show()
>
> My figure window should be 8in x 6in, but instead it is 6in tall and as
> wide as my screen will allow. So thats the first issue. The second is this:
> if I close that window, and then do
>
> >>> plot([1,2])
>
> [<matplotlib.lines.Line2D instance at 0x2aaab1ebbcf8>]
>
> >>> show()
>
> I get the following traceback:
>
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File
> "/usr/lib64/python2.4/site-packages/matplotlib/backends/backend_qt.py",
> line 47, in show
> manager.window.show()
> RuntimeError: underlying C/C++ object has been deleted
>
> I'm using qt version 3.3.4, with cvs mpl 0.86.2, on a gentoo linux system.
> The only nondefault rc setting is the choice of backend.
>
> Darren
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
>
> _______________________________________________
> Matplotlib-devel mailing list
> Matplotlib-devel@lists.sourceforge.net
> matplotlib-devel List Signup and Options

--
Darren S. Dale, Ph.D.
dd55@...143...

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
matplotlib-devel List Signup and Options

Darren,
I'll have someone take a look at it soon. We're right in the middle of a
big delivery so we don't really have a lot of time to spend on this right
now...

Thanks, Ted. I'm not in a rush.

I'm about to start my first python-based gui project, and want to use Qt. I'll
also continue to poke around at these problems myself as I find time.

Darren

···

On Sunday 26 February 2006 1:06 pm, Ted Drain wrote:

At 08:20 AM 2/26/2006, Darren Dale wrote:
>Respectfully: Is the QtAgg backend supported?
>
>On Saturday 18 February 2006 6:01 pm, Darren Dale wrote:
> > I'm having two problems with the QtAgg backend. If I do:
> > >>> from pylab import *
> > >>> plot([1,2])
> >
> > [<matplotlib.lines.Line2D instance at 0x2aaab1ead830>]
> >
> > >>> show()
> >
> > My figure window should be 8in x 6in, but instead it is 6in tall and as
> > wide as my screen will allow. So thats the first issue. The second is
> > this: if I close that window, and then do
> >
> > >>> plot([1,2])
> >
> > [<matplotlib.lines.Line2D instance at 0x2aaab1ebbcf8>]
> >
> > >>> show()
> >
> > I get the following traceback:
> >
> > Traceback (most recent call last):
> > File "<stdin>", line 1, in ?
> > File
> > "/usr/lib64/python2.4/site-packages/matplotlib/backends/backend_qt.py",
> > line 47, in show
> > manager.window.show()
> > RuntimeError: underlying C/C++ object has been deleted
> >
> > I'm using qt version 3.3.4, with cvs mpl 0.86.2, on a gentoo linux
> > system. The only nondefault rc setting is the choice of backend.
> >
> > Darren
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> > files for problems? Stop! Download the new AJAX search engine that
> > makes searching your log files as easy as surfing the web. DOWNLOAD
> > SPLUNK!
> >
> > _______________________________________________
> > Matplotlib-devel mailing list
> > Matplotlib-devel@lists.sourceforge.net
> > matplotlib-devel List Signup and Options
>
>--
>Darren S. Dale, Ph.D.
>dd55@...143...
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language that extends applications into web and mobile media. Attend the
> live webcast and join the prime developer group breaking into this new
> coding territory! _______________________________________________
>Matplotlib-devel mailing list
>Matplotlib-devel@lists.sourceforge.net
>matplotlib-devel List Signup and Options

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live
webcast and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
matplotlib-devel List Signup and Options

--
Darren S. Dale, Ph.D.
dd55@...143...

Hmm - I just ran your test and everything seems to work fine. I'm using MPL 0.85 and Qt 3.3.5. I did a diff of backend_qt.py and backend_qtagg.py from 0.85 to the current CVS repository and they're identical. So I'm not sure what could be going on...

Ted

···

At 10:30 AM 2/26/2006, Darren Dale wrote:

On Sunday 26 February 2006 1:06 pm, Ted Drain wrote:
> Darren,
> I'll have someone take a look at it soon. We're right in the middle of a
> big delivery so we don't really have a lot of time to spend on this right
> now...

Thanks, Ted. I'm not in a rush.

I'm about to start my first python-based gui project, and want to use Qt. I'll
also continue to poke around at these problems myself as I find time.

Darren

> At 08:20 AM 2/26/2006, Darren Dale wrote:
> >Respectfully: Is the QtAgg backend supported?
> >
> >On Saturday 18 February 2006 6:01 pm, Darren Dale wrote:
> > > I'm having two problems with the QtAgg backend. If I do:
> > > >>> from pylab import *
> > > >>> plot([1,2])
> > >
> > > [<matplotlib.lines.Line2D instance at 0x2aaab1ead830>]
> > >
> > > >>> show()
> > >
> > > My figure window should be 8in x 6in, but instead it is 6in tall and as
> > > wide as my screen will allow. So thats the first issue. The second is
> > > this: if I close that window, and then do
> > >
> > > >>> plot([1,2])
> > >
> > > [<matplotlib.lines.Line2D instance at 0x2aaab1ebbcf8>]
> > >
> > > >>> show()
> > >
> > > I get the following traceback:
> > >
> > > Traceback (most recent call last):
> > > File "<stdin>", line 1, in ?
> > > File
> > > "/usr/lib64/python2.4/site-packages/matplotlib/backends/backend_qt.py",
> > > line 47, in show
> > > manager.window.show()
> > > RuntimeError: underlying C/C++ object has been deleted
> > >
> > > I'm using qt version 3.3.4, with cvs mpl 0.86.2, on a gentoo linux
> > > system. The only nondefault rc setting is the choice of backend.
> > >
> > > Darren
> > >
> > > -------------------------------------------------------
> > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> > > files for problems? Stop! Download the new AJAX search engine that
> > > makes searching your log files as easy as surfing the web. DOWNLOAD
> > > SPLUNK!
> > >
> > > _______________________________________________
> > > Matplotlib-devel mailing list
> > > Matplotlib-devel@lists.sourceforge.net
> > > matplotlib-devel List Signup and Options
> >
> >--
> >Darren S. Dale, Ph.D.
> >dd55@...143...
> >
> >-------------------------------------------------------
> >This SF.Net email is sponsored by xPML, a groundbreaking scripting
> > language that extends applications into web and mobile media. Attend the
> > live webcast and join the prime developer group breaking into this new
> > coding territory! _______________________________________________
> >Matplotlib-devel mailing list
> >Matplotlib-devel@lists.sourceforge.net
> >matplotlib-devel List Signup and Options
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live
> webcast and join the prime developer group breaking into this new coding
> territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> Matplotlib-devel mailing list
> Matplotlib-devel@lists.sourceforge.net
> matplotlib-devel List Signup and Options

--
Darren S. Dale, Ph.D.
dd55@...143...

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
matplotlib-devel List Signup and Options

Hmm - I just ran your test and everything seems to work fine. I'm using
MPL 0.85 and Qt 3.3.5. I did a diff of backend_qt.py and backend_qtagg.py
from 0.85 to the current CVS repository and they're identical. So I'm not
sure what could be going on...

Maybe this is not an issue with qt-3.3.5.

Another datapoint: when I run the embedding_in_qt.py example, the size of the
window is correct.

···

On Sunday 26 February 2006 13:54, Ted Drain wrote:

At 10:30 AM 2/26/2006, Darren Dale wrote:
>On Sunday 26 February 2006 1:06 pm, Ted Drain wrote:
> > Darren,
> > I'll have someone take a look at it soon. We're right in the middle of
> > a big delivery so we don't really have a lot of time to spend on this
> > right now...
>
>Thanks, Ted. I'm not in a rush.
>
>I'm about to start my first python-based gui project, and want to use Qt.
>I'll
>also continue to poke around at these problems myself as I find time.
>
>Darren
>
> > At 08:20 AM 2/26/2006, Darren Dale wrote:
> > >Respectfully: Is the QtAgg backend supported?
> > >
> > >On Saturday 18 February 2006 6:01 pm, Darren Dale wrote:
> > > > I'm having two problems with the QtAgg backend. If I do:
> > > > >>> from pylab import *
> > > > >>> plot([1,2])
> > > >
> > > > [<matplotlib.lines.Line2D instance at 0x2aaab1ead830>]
> > > >
> > > > >>> show()
> > > >
> > > > My figure window should be 8in x 6in, but instead it is 6in tall
> > > > and as wide as my screen will allow. So thats the first issue. The
> > > > second is this: if I close that window, and then do
> > > >
> > > > >>> plot([1,2])
> > > >
> > > > [<matplotlib.lines.Line2D instance at 0x2aaab1ebbcf8>]
> > > >
> > > > >>> show()
> > > >
> > > > I get the following traceback:
> > > >
> > > > Traceback (most recent call last):
> > > > File "<stdin>", line 1, in ?
> > > > File
> > > > "/usr/lib64/python2.4/site-packages/matplotlib/backends/backend_qt.
> > > >py", line 47, in show
> > > > manager.window.show()
> > > > RuntimeError: underlying C/C++ object has been deleted
> > > >
> > > > I'm using qt version 3.3.4, with cvs mpl 0.86.2, on a gentoo linux
> > > > system. The only nondefault rc setting is the choice of backend.
> > > >
> > > > Darren
> > > >
> > > >
> > > > -------------------------------------------------------
> > > > This SF.net email is sponsored by: Splunk Inc. Do you grep through
> > > > log files for problems? Stop! Download the new AJAX search engine
> > > > that makes searching your log files as easy as surfing the web.
> > > > DOWNLOAD SPLUNK!
> > > >
> > > > _______________________________________________
> > > > Matplotlib-devel mailing list
> > > > Matplotlib-devel@lists.sourceforge.net
> > > > matplotlib-devel List Signup and Options
> > >
> > >--
> > >Darren S. Dale, Ph.D.
> > >dd55@...143...
> > >
> > >
> > >-------------------------------------------------------
> > >This SF.Net email is sponsored by xPML, a groundbreaking scripting
> > > language that extends applications into web and mobile media. Attend
> > > the live webcast and join the prime developer group breaking into
> > > this new coding territory!
> > > _______________________________________________ Matplotlib-devel
> > > mailing list
> > >Matplotlib-devel@lists.sourceforge.net
> > >matplotlib-devel List Signup and Options
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by xPML, a groundbreaking scripting
> > language that extends applications into web and mobile media. Attend
> > the live webcast and join the prime developer group breaking into this
> > new coding territory!
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=12164
> >2 _______________________________________________
> > Matplotlib-devel mailing list
> > Matplotlib-devel@lists.sourceforge.net
> > matplotlib-devel List Signup and Options
>
>--
>Darren S. Dale, Ph.D.
>dd55@...143...
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language that extends applications into web and mobile media. Attend the
> live webcast and join the prime developer group breaking into this new
> coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
>Matplotlib-devel mailing list
>Matplotlib-devel@lists.sourceforge.net
>matplotlib-devel List Signup and Options

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live
webcast and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
matplotlib-devel List Signup and Options

--
Darren S. Dale, Ph.D.
Cornell High Energy Synchrotron Source
Cornell University
200L Wilson Lab
Rt. 366 & Pine Tree Road
Ithaca, NY 14853

dd55@...143...
office: (607) 255-9894
fax: (607) 255-9001