matplotlib won't draw python3
I ran into exact same issue, but after much efforts I managed to make TkAgg working (which was giving the import error for _tkagg). Little late, but someone might find it useful.
FWIW I resolved the issue as follows (to use TkAgg):
- Installed
tk-dev
from package manager - Reinstalled
python3-tk
from package manager - Rebuilt and reinstalled
matplotlib
from source - (and of course setting TkAgg in matplotrc)
If you think you have tk-dev
and python3-tk
installed correctly, you need to rebuild and reinstall matplotlib, so that it generates _tkagg.py
in your backends
directory.
I'm using Python3.3 (numpy 1.7) on LM14. But I think it should work on Ubuntu/Python3.2
I have been doing source builds of python 3.3.2 and matplotlib. As noted above, TkAgg works. If you are building everything from source:
- sudo apt-get install tk-dev
- Rebuild python3 (make clean; ./configure; make)
- Clean matplotlib (delete egg from virtualenv, remove cache objects from ~/.config/matplotlib)
- Rebuilt matplotlib from source (rm -r build/; python setup.py build; python setup.py install)
Finally got to see that silly box pop up wit my x=y line.
hours....
Matplotlib seems to have taken a large step towards Python 3 with their 1.2.x release. matplotlib 1.2.0rc2 (+ numpy 1.7.0b2) is working for me with
- Python 3.2.2 (virtualenv on a Linux Mint 12)
- Python 3.3.0 (local installation from source)
In both cases, matplotlib reports "TkAgg" as the backend used.
Unfortunately, I have no clue if/how this might work with Pyramid.