[SciPy-user] problem with unicode in matplotlib

Seweryn Kokot skokot at po.opole.pl
Wed Oct 4 08:16:01 CDT 2006


Hello,

I'm using python-matplotlib from debian unstable (vers. 0.87.5) 
and the plots doesn't display properly polish fonts, 
instead I get squares on graphs.
Simple example

#!/usr/bin/python
# -*- coding: iso-8859-2 -*-
from pylab import *
plot([1, 2, 3], [1, 4, 2])
xlabel(unicode('Miesiąc maj','iso-8859-2'))
ylabel(unicode('ążęńół','iso-8859-2'))
show()

Any idea?
Regards,
Seweryn Kokot



More information about the SciPy-user mailing list