On 05/23/2010 10:04 AM, Adam Webb wrote:
On May 22, 11:12 pm, Jose Guzman<n...@neurohost.org> wrote:
Hi everybody
When I tried to import matplotlib from the Python version that is
bundled with Sage, I found that the moduled tkagg was not present.
>>> import matplotlib.pyplot as plt
>>> No module named _tkagg
Would anybody tell me how to install this module in the Python version
of Sage. I am using Debian/GNU Linux and Sage 4.3.5
Thanks a lot in advance!
Jose.
Hi,
As I recall, you need to set an environment variable before building
matplotlib. In bash:
$ export SAGE_MATPLOTLIB_GUI='yes'
You will also need the dev pakages installed.
$ sudo apt-get install tk-dev tcl-dev
After installing the dev packages you should only have to reinstall
matplotlib.
$ sage -f matplotlib
HTH
Adam
Dear Adam,
Absolutely fantastic, I just followed your instructions and Matplotlib
is working under my Sage.
Thanks a lot
Jose.
--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org