title: example of embedding matplotlib in PyQt5
body: <p>Can anybody show a simple example with basic functionality of embedding matplotlib in PyQt5?</p>
  
  <p>There is PyQt4 example available in official <a href="http://matplotlib.org/examples/user_interfaces/embedding_in_qt4.html" rel="nofollow">docs</a>. PyQt4 will soon be <a href="http://www.riverbankcomputing.co.uk/software/pyqt/intro" rel="nofollow">outdated</a>:</p>
  
  <blockquote>
    <p>Digia have announced that support for Qt v4 will cease at the end of 2015. PyQt5 and Qt v5 are strongly recommended for all new development.</p>
  </blockquote>
  
  <p>It could be any general example, say, Qt5 QMainWindow/QWidget + matplotlib line plot.</p>