PySide Backend

I was trying for dome time to use the Pyside Backend (qt4Agg with pySide), with no success, but after reading the beckend code I’ve finally made it.

After installing the 1.0.1 version on my Ubuntu, I’ve noticed the installation doesn’t check for pySide what is strange yet, not the point here…

The trick was quite simple, forcing the QtGui and QtCore to be declared from pySide module. This is done inside qt4_compat.py checking for the string inside: rcParams[‘backend.qt4’].

This dictionary I don’t know where It comes from, so, just altering during runtime was enough to make the example “embedding_in_qt4.py” work.

There is any better way to choose between pySide and pyQt? Couldn’t they be separated in to individual backends?

Yet I understand this information is not easily available on the Internet, so i’m trying to share it.

Thanks,

Tiago Ferreira Bonetti

Tiago,

Have you had a chance to look at the code in the latest developmental branch? There was some work over the summer on this, and I think it is largely resolved, but testing would be appreciated.

Cheers!
Ben Root

···

On Thursday, September 8, 2011, Tiago Bonetti <tiago.bonetti@…149…> wrote:

I was trying for dome time to use the Pyside Backend (qt4Agg with pySide), with no success, but after reading the beckend code I’ve finally made it.

After installing the 1.0.1 version on my Ubuntu, I’ve noticed the installation doesn’t check for pySide what is strange yet, not the point here…
The trick was quite simple, forcing the QtGui and QtCore to be declared from pySide module. This is done inside qt4_compat.py checking for the string inside: rcParams[‘backend.qt4’].

This dictionary I don’t know where It comes from, so, just altering during runtime was enough to make the example “embedding_in_qt4.py” work.
There is any better way to choose between pySide and pyQt? Couldn’t they be separated in to individual backends?

Yet I understand this information is not easily available on the Internet, so i’m trying to share it.
Thanks,
Tiago Ferreira Bonetti

I’m new to github, so forgive me if I’m a litlle lost.

I have the most recent master branch from github matplotlib /
matplotlib public repository…
I would like to help testing, yet i cant find the dev branch.

Thanks,

Tiago Ferreira Bonetti

···

On Thu, Sep 8, 2011 at 10:27 PM, Benjamin Root <ben.root@…553…> wrote:

On Thursday, September 8, 2011, Tiago Bonetti <tiago.bonetti@…149…> wrote:

I was trying for dome time to use the Pyside Backend (qt4Agg with pySide), with no success, but after reading the beckend code I’ve finally made it.

After installing the 1.0.1 version on my Ubuntu, I’ve noticed the installation doesn’t check for pySide what is strange yet, not the point here…
The trick was quite simple, forcing the QtGui and QtCore to be declared from pySide module. This is done inside qt4_compat.py checking for the string inside: rcParams[‘backend.qt4’].

This dictionary I don’t know where It comes from, so, just altering during runtime was enough to make the example “embedding_in_qt4.py” work.
There is any better way to choose between pySide and pyQt? Couldn’t they be separated in to individual backends?

Yet I understand this information is not easily available on the Internet, so i’m trying to share it.
Thanks,
Tiago Ferreira Bonetti

Tiago,

Have you had a chance to look at the code in the latest developmental branch? There was some work over the summer on this, and I think it is largely resolved, but testing would be appreciated.

Cheers!
Ben Root

I'm new to github, so forgive me if I'm a litlle lost.
I have the most recent master branch from github matplotlib
<https://github.com/matplotlib&gt; / matplotlib
<https://github.com/matplotlib/matplotlib&gt; public repository...
I would like to help testing, yet i cant find the dev branch.

It is what you have, the master branch.

Eric

···

On 09/08/2011 03:53 PM, Tiago Bonetti wrote:

Thanks,
Tiago Ferreira Bonetti

On Thu, Sep 8, 2011 at 10:27 PM, Benjamin Root <ben.root@...553... > <mailto:ben.root@…553…>> wrote:

    On Thursday, September 8, 2011, Tiago Bonetti > <tiago.bonetti@...149... <mailto:tiago.bonetti@…149…>> wrote:
     > I was trying for dome time to use the Pyside Backend (qt4Agg with
    pySide), with no success, but after reading the beckend code I've
    finally made it.
     > After installing the 1.0.1 version on my Ubuntu, I've noticed the
    installation doesn't check for pySide what is strange yet, not the
    point here...
     > The trick was quite simple, forcing the QtGui and QtCore to be
    declared from pySide module. This is done inside qt4_compat.py
    checking for the string inside: rcParams['backend.qt4'].
     > This dictionary I don't know where It comes from, so, just
    altering during runtime was enough to make the example
    "embedding_in_qt4.py" work.
     > There is any better way to choose between pySide and pyQt?
    Couldn't they be separated in to individual backends?
     > Yet I understand this information is not easily available on the
    Internet, so i'm trying to share it.
     > Thanks,
     > Tiago Ferreira Bonetti
     >

    Tiago,

    Have you had a chance to look at the code in the latest
    developmental branch? There was some work over the summer on this,
    and I think it is largely resolved, but testing would be appreciated.

    Cheers!
    Ben Root

------------------------------------------------------------------------------
Why Cloud-Based Security and Archiving Make Sense
Osterman Research conducted this study that outlines how and why cloud
computing security and archiving is rapidly being adopted across the IT
space for its ease of implementation, lower cost, and increased
reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/

_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
matplotlib-devel List Signup and Options

I’m not sure if it’s true to every install, but my matplotlibrc was missing a section.

Looking at matplotlibrc.template we have a section:

If you are using the Qt4Agg backend, you can choose here

to use the PyQt4 bindings or the newer PySide bindings to

the underlying Qt4 toolkit.

#backend.qt4 : PyQt4 # PyQt4 | PySide

Adding and configuring this section to my matplotlibrc solved it…
Not sure if it’s a bug on installation process… Any Ideas?

Atenciosamente,
Tiago Ferreira Bonetti

···

On Thu, Sep 8, 2011 at 11:00 PM, Eric Firing <efiring@…552…229…> wrote:

On 09/08/2011 03:53 PM, Tiago Bonetti wrote:

I’m new to github, so forgive me if I’m a litlle lost.

I have the most recent master branch from github matplotlib

<https://github.com/matplotlib> / matplotlib

<https://github.com/matplotlib/matplotlib> public repository…
I would like to help testing, yet i cant find the dev branch.

It is what you have, the master branch.

Eric

Thanks,

Tiago Ferreira Bonetti

On Thu, Sep 8, 2011 at 10:27 PM, Benjamin Root <ben.root@…553… > > mailto:ben.root@...553...> wrote:

On Thursday, September 8, 2011, Tiago Bonetti > >     <tiago.bonetti@...149... <mailto:tiago.bonetti@...149...>> wrote:
 > I was trying for dome time to use the Pyside Backend (qt4Agg with
pySide), with no success, but after reading the beckend code I've
finally made it.
 > After installing the 1.0.1 version on my Ubuntu, I've noticed the
installation doesn't check for pySide what is strange yet, not the
point here...
 > The trick was quite simple, forcing the QtGui and QtCore to be
declared from pySide module. This is done inside qt4_compat.py
checking for the string inside: rcParams['backend.qt4'].
 > This dictionary I don't know where It comes from, so, just
altering during runtime was enough to make the example
"embedding_in_qt4.py" work.
 > There is any better way to choose between pySide and pyQt?
Couldn't they be separated in to individual backends?
 > Yet  I understand this information is not easily available on the
Internet, so i'm trying to share it.
 > Thanks,
 > Tiago Ferreira Bonetti
 >
Tiago,
Have you had a chance to look at the code in the latest
developmental branch?  There was some work over the summer on this,
and I think it is largely resolved, but testing would be appreciated.
Cheers!
Ben Root

Why Cloud-Based Security and Archiving Make Sense

Osterman Research conducted this study that outlines how and why cloud

computing security and archiving is rapidly being adopted across the IT

space for its ease of implementation, lower cost, and increased

reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/


Matplotlib-devel mailing list

Matplotlib-devel@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Why Cloud-Based Security and Archiving Make Sense

Osterman Research conducted this study that outlines how and why cloud

computing security and archiving is rapidly being adopted across the IT

space for its ease of implementation, lower cost, and increased

reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/


Matplotlib-devel mailing list

Matplotlib-devel@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-devel