python - Running matplotlib with PyQt on Windows -


i'm having trouble running matplotlib pyqt on windows 7.

when executing code uses these 2 libraries, demo code such as: http://eli.thegreenplace.net/files/prog_code/qt_mpl_bars.py.txt

i error:

typeerror: 'pyside.qtgui.qwidget.setparent' called wrong argument types:   pyside.qtgui.qwidget.setparent(qwidget) supported signatures:   pyside.qtgui.qwidget.setparent(pyside.qtgui.qwidget)   pyside.qtgui.qwidget.setparent(pyside.qtgui.qwidget, pyside.qtcore.qt.windowfl ags) 

i'm using python 2.7.5, matplotlib 1.2.1, , pyqt 4.10.3. of these 32-bit, running on 64-bit os. i've ran code used matplotlib , pyqt separately no issues.

i've tried solution suggested in getting pyside work matplotlib no success.

please me track down error.

i not clear if want use pyside or pyqt, in either case problem want use one, matplotlib setting qt4 backend using other one, hence confusing looking errors.

if want use pyside make sure

backend.qt4 : pyside        # pyqt4 | pyside 

is in matplotlibrc file.

if want use pyqt make sure

backend.qt4 : pyqt4        # pyqt4 | pyside 

is in matplotlibrc file.


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -