[PyKDE] How to populate a QwtPlotSpectrogram
Martin Wiechert
martin.wiechert at gmx.de
Tue Oct 17 17:30:22 BST 2006
Hi list,
While playing with PyQwt5 I stumbled accross QwtPlotSpectrogram which appears
to be the official replacement for the "engineered ImagePlotDemo.py" which I
think not only I am using to display data matrices.
But I cannot make it work for me:
>>> b = qwt.QwtPlotSpectrogram ()
>>> C = qwt.QwtRasterData (c)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: Qwt.QwtRasterData represents a C++ abstract class and cannot be
instantiated
Docs say QwtPlotSpectrogram.setData wants a QwtRasterData object and this
class doesn't seem to have children. What am I missing?
TIA,
Martin
More information about the PyQt
mailing list