[Pythonmac-SIG] matplotlib and postscript output

Teemu Rinne Teemu.Rinne at helsinki.fi
Thu Sep 8 21:56:59 CEST 2005


Hi,

I am still not able to figure out what is wrong with the postscript output
of my new matplotlib installations (pythonmac binaries). 

Test script:

import matplotlib
matplotlib.use('Agg')
from pylab import *
plot(arange(5),arange(5),'k-')
title("some title")
xlabel('some unit label')
ylabel('some different unit label')

#this works as expected
savefig("filename.png ")
#this seems to work but the output file is too big (4.4M) and is somehow
broken.
savefig("filename.ps")   

The "broken" file looks like this:
http://www.helsinki.fi/~tjrinne/matplotlib/filename.ps

The fact that postscript output happens to be working (file size 144K) on
one of my macs (with matplotlib and tons of other packages installed) makes
me think that something is missing from my new installations.

If matplotlib works with png output, should postscript work too or does it
require something extra (say, upgrade of some package)?

If I start from scratch with a tiger G5, what do I install and in which
order to get postscript output working?

Any help/suggestions would be greatly appreciated. 


--
Teemu Rinne


More information about the Pythonmac-SIG mailing list