I have tried running the example code on the SciPy website, but I get this error:
Traceback (most recent call last): File ".\matplotlibPySide.py", line 24, in <module> win.setCentralWidget(canvas) TypeError: 'PySide.QtGui.QMainWindow.setCentralWidget' called with wrong argument types: PySide.QtGui.QMainWindow.setCentralWidget(FigureCanvasQTAgg) Supported signatures: PySide.QtGui.QMainWindow.setCentralWidget(PySide.QtGui.QWidget)
I am building a simple scientific data logger that will eventually be used in commercial applications, so I really need both the LGPL from PySide and plotting functionality. Does anyone have experience on how to get this to work or alternative plotting packages or ideas?
Thanks in advance.
The example that you mention:
works, but you might need to suggest the use of PySide:
... matplotlib.use('Qt4Agg') matplotlib.rcParams['backend.qt4']='PySide' import pylab ...