Drawing charts in Qt

M

Michel Albert

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.
 
J

Jeremy Sanders

Michel said:
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.

Veusz does line charts, and stepped charts (which are almost like bar
charts...). It is implemented with PyQt4.

You can use the windows.PlotWindow widget in your PyQt4 app, but
unfortunately I haven't got round to documenting this properly... If you're
interested I can give instructions.

Jeremy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,534
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top