title: matplotlib won't draw python3
body: <p>I installed matplotlib successfully inside a virtualenv. Now I'm trying to get it to draw. I know how to change the backend, but I'm having a whole lot of trouble figuring out what to change it to. </p>
  
  <p>Has anyone managed to get it totally working with python3? If yes, how?</p>
  
  <p>I have tried a bunch of things. I have cycled through all the backends to see what all of the complaints are, not I'm trying to get just one of them to work.</p>
  
  <p>Also possibly worth noting is that my goal is to integrate it into a Pyramid app.</p>
  
  <p>Here's what has happened so far for all the different backends:</p>
  
  <ul>
  <li>Agg: this was the default backend. it does not draw</li>
  <li>GTK: requires pygtk which apparently has not been ported to python3</li>
  <li>GTKAgg: ditto</li>
  <li>GTKCairo: says 'required package gtk' assume something along the lines of above</li>
  <li>FltkAgg: Doesn't look like it has a python3 version. Even though it is mentioned in the python3 UI FAQ. I guess that was just a rouse. gosh darnit</li>
  <li>MacOSX: I'm running ubuntu. assumed inappropriate</li>
  <li>QtAgg: requires pyqt. see Qt4Agg</li>
  <li>Qt4Agg: see <a href="https://stackoverflow.com/questions/12933997/installing-pyqt4-in-a-virtualenv">Installing PyQt4 in a virtualenv</a></li>
  <li>TkAgg: ImportError: cannot import name _tkagg. I can run import tkinter in the interpreter though, so I'm not really sure what's broken as yet</li>
  <li>WX: ImportError: Matplotlib backend_wx and backend_wxagg require wxversion, which was not found</li>
  <li>WXAgg: ditto</li>
  <li>CocoaAgg: ImportError: The CococaAgg backend required PyObjC to be installed!</li>
  <li>GTK3Cairo : ImportError: GTK3 backend requires pygobject to be installed. I tried installing it but when I try to configure it with the correct python it complains about missing headers</li>
  <li>GTK3Agg: no module named cairo. but I assue I'll hit the same issue as above</li>
  <li>cairo: Cairo backend requires that pycairo is installed</li>
  <li>emf:You must first install pyemf from <a href="http://pyemf.sf.net" rel="nofollow noreferrer">http://pyemf.sf.net</a>. Looks like it is supposed to do windowsey stuff so this may not be a good choice</li>
  <li>gdk: no module called gobject</li>
  <li>pdf: runs but doesn't draw</li>
  <li>pgf: ditto</li>
  <li>ps: ditto</li>
  <li>svg: ditto</li>
  <li>template: ditto .</li>
  </ul>
  
  <p>The script I am using to test my backend is:</p>
  
  <pre><code>import matplotlib.pyplot as plt
  plt.plot([1,2,3,4])
  plt.show()
  </code></pre>
  
  <p>So far I have spent waaay too much time trying to get python3.2 and qt4 playing nice, and I just seem to be running into problems every way I turn. So instead of continuing with my trial and error approach I want to ask:</p>
  
  <ol>
  <li>What is the best option for Python3.2 and Pyramid?</li>
  <li>How do I make it happen?</li>
  </ol>
  
  <p>In the meantime I will continue with the trial-and-error thing and update my question as I go.</p>
  
  <p><strong>NOTES on stuff I'm trying</strong></p>
  
  <p>For TkAgg:</p>
  
  <p>since tkinter imports correctly I'm assuming it's installed correctly (if I'm wrong I suppose there's a way to test it?). This guy <a href="http://ask.sagemath.org/question/626/sage-python-import-matplotlib-no-module-named" rel="nofollow noreferrer">http://ask.sagemath.org/question/626/sage-python-import-matplotlib-no-module-named</a> had a similar problem but Im sure his setup is different from mine. The solution was to find tkagg.py in the bowels of the python3.2 site packages directory and edit the offending import statement. I find it hard to believe that matplotlib ships broken (and I cant run the modified code suggested...)</p>
  
  <p>For WX stuff:</p>
  
  <p><a href="https://stackoverflow.com/questions/720806/wxpython-for-python-3">wxPython for Python 3</a> says there is no support for python3 yet. Also wxPython has no mention of python3 on their site so I guess that's a no-go. running out of options :/</p>
  
  <p>Cocoa:</p>
  
  <p>Ditto: <a href="https://stackoverflow.com/questions/1514638/writing-cocoa-applications-in-python-3">Writing Cocoa applications in Python 3</a></p>
  
  <p>EMF:</p>
  
  <p>ditto: <a href="http://pyemf.sourceforge.net/README.html" rel="nofollow noreferrer">http://pyemf.sourceforge.net/README.html</a></p>