title: matplotlib widget for Qt 4, Python 3
body: <p>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.</p>
  
  <p>I found some Qt widget in this chapter: <a href="http://www.packtpub.com/sites/default/files/sample_chapters/7900-matplotlib-for-python-developers-sample-chapter-6-embedding-matplotlib-in-qt-4.pdf?utm_source=packtpub&amp;utm_medium=free&amp;utm_campaign=pdf" rel="nofollow noreferrer">Matplotlib for Python Developers, Embedding Matplotlib in Qt 4</a>. But there also some example widget here: <a href="https://stackoverflow.com/questions/7238570/scaling-embedded-matplotlib-widget-in-qt-application-written-in-python-problem">mpl widget</a>.</p>
  
  <p>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.</p>
  
  <p>Any advice, good reference or available widgets are welcome.</p>