I'm writing a GUI application in Python 3 using PyQt4 and matplotlib. User would have to select certain field names, then programm would read corresponding values from the database, process them and draw a plot with some statistics out of it. User could change then field names or certain options for statistics representation and (automatically) redraw the plot.
I found some Qt widget in this chapter: Matplotlib for Python Developers, Embedding Matplotlib in Qt 4. But there also some example widget here: mpl widget.
I don't have much experience with Qt design and wonder what might be the difference btw those two? So far I've tried the first one and it allows me to display a matplotlib plot (histogram) within Qt GUI, but I can't test all the features, like updating the plot after changing any parameters, because it is not implemented yet.
Any advice, good reference or available widgets are welcome.