Drawing charts in Qt

Michel Albert exhuma at gmail.com
Tue Nov 6 09:46:07 EST 2007


I would like to display some charts in a Qt application. But all the
docs I find online are rather dusty and talk about Qt3. My application
uses Qt4 however. I ran into PyQwt and matplotlib. But the docs of
matplotlib are horrid and the example in their wiki covers Qt3, and
things look quite cryptic to me.

PyQwt looks much more interesting, but I have trouble installing it.
On my machine it complains that sipconfig "has no attribute
'_pkg_config'".

In the end the application should also run on Windows boxes. And I
suppose as long as I use the right versions and use the precompiled
binaries, I should get it at least installed. But the thing with the
version numbers looks like some major lottery game to me. If one of
the elements in the chain (be it Qt, or Qwt) release new versions and
the available binary distributions get "out of sync", future support
for the written application becomes foggy.

Has anyone ever successfully used these graphing libraries with PyQt?
Or are there other graphing libraries available? In fact, my needs are
modest. A Line- and Bar-Chart would solve the majority of problems.




More information about the Python-list mailing list