Matplotlib and PySide ?

Hello,

  Does anybody know if matplotlib work with pyside ?
If it does how to use matplotib with pyside ?

Thanks,

David

David,

I am not familiar with PySide, so I looked it up. Please correct me if I am wrong, but it appears to be an alternative to PyQt for licensing reasons, and the FAQ says that it is API compatible. On the python side of matplotlib, I wonder if using PySide would be as simple as just replacing all of the “import PyQt” or “import PyQt4” with “import PySide” (and all the “from PyQt import …”).

Does PySide still use the same compiled Qt libraries that PyQt uses? If so, then I don’t think you need to recompile the Qt backends, but I am not entirely sure.

Good luck!
Ben Root

···

On Wed, Sep 15, 2010 at 3:03 AM, David Trémouilles <david.trem@…287…> wrote:

Hello,

Does anybody know if matplotlib work with pyside ?

If it does how to use matplotib with pyside ?

Thanks,

David

Hi Ben,
I did try to roughly replace PyQt4 import by PySide import
in my installed matplotlib but pyplot.plot function led to a seg fault...
(PyQt and PySide where indeed compiled with the same Qt lib)

I'm not skilled enough to go further on...

Thanks for your help,

David

···

On Wed, Sep 15, 2010 at 3:03 AM, David Tr�mouilles <david.trem@…287… > <mailto:david.trem@…287…>> wrote:

    Hello,

      Does anybody know if matplotlib work with pyside ?
    If it does how to use matplotib with pyside ?

    Thanks,

    David

David,

I am not familiar with PySide, so I looked it up. Please correct me if
I am wrong, but it appears to be an alternative to PyQt for licensing
reasons, and the FAQ says that it is API compatible. On the python side
of matplotlib, I wonder if using PySide would be as simple as just
replacing all of the "import PyQt" or "import PyQt4" with "import
PySide" (and all the "from PyQt import ...").

Does PySide still use the same compiled Qt libraries that PyQt uses? If
so, then I don't *think* you need to recompile the Qt backends, but I am
not entirely sure.

Good luck!
Ben Root