Tuesday 10 February 2009

Pylab / matplotlib, ubuntu

wget http://puzzle.dl.sourceforge.net/sourceforge/matplotlib/matplotlib-0.98.5.2.tar.gz

Actually, that didn't work. I had to manually download the source.

gunzip < UMFPACK.tar.gz | tar xvf -
cd matplotlib
python setup.py build
python setup.py install

sudo apt-get install python-qt3 # required for plots to work.

phd

x = arange(0, pi*10, pi/100); plot(x, sin(x))

works.

---------------------------------------------------------------

A later installation wasn't so smooth. Inspecting the output of $ python setup.py build, showed freetype2 couldn't be found.

$ sudo aptitude install libfreetype6-dev

fixed that.

$ sudo python setup.py install

then fixed things. phew. arange now works.

No comments:

Post a Comment