<p>I'm trying to write a simple plugin in Qgis using matplotlib graph. Unfortunately I can't view graph. <br>From a button I've connected this simple function:<br><br>import matplotlib.pyplot as plt<br>[...]<br> def BuildGraph(self):<br>      plt.ion()<br>      plt.plot([1.6, 2.7])<br>or:<br>     plt.show()<br><br>I've not response. If I coding in python shell under qgis, I get:<br>[<matplotlib.lines.Line2D object at 0x03BDFE50>]<br><br>I'm setted the matplotlib  beckend with this code  (following:  http://matplotlib.org/faq/usage_faq.html#what-is-a-backend):<br><br>import matplotlib<br>matplotlib.use('Qt4Agg')  <br><br>... but the response is the same: nothing!<br>Could anybody help me?<br mce_bogus="1"></p><div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;" id="_mcePaste"> </div>