First time here? Check out the FAQ!

Ask Your Question
0

working with latest version of matplotlib in sagemath

asked 13 years ago

ebs gravatar image

The latest version of matplotlib is 1.1.0 and it brings new modules like matplotlib.animation(I get marks in exams only if I use this module to animate(crazy isn't it! ))

How can I install the latest matplotlib in sagemath 4.8.3 x86-64 version?

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
0

answered 13 years ago

Shashank gravatar image

updated 13 years ago

I just tried out the following and seems to work for me. I get a bunch of warnings so I am not sure it is fully functional but the I can import matplotlib.animation

On your linux terminal type(assuming sage is in your PATH)

sage -sh

You will get a sage shell. In that type

easy_install -U matplotlib

That should do it.

Edit: For some reason plt.show() does not work for me. And im_ani.save does not work unless you have ffmpeg installed. So install ffmpeg on you machine and save the movie in mp4 format.

Preview: (hide)
link
0

answered 13 years ago

Try this (from the command line):

sage -i http://sage.math.washington.edu/home/jason/matplotlib-1.1.0.spkg

It might also help to apply the patch from Sage trac ticket 11915.

Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 13 years ago

Seen: 652 times

Last updated: Mar 05 '12