Menu

[r2180]: / trunk / htdocs / examples / unicode_demo.py  Maximize  Restore  History

Download this file

14 lines (11 with data), 425 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
#!/usr/bin/python
# -*- coding: utf-8 -*-
from pylab import *
plot([1,2,4])
title( unicode('Développés et fabriqués', 'latin-1') )
xlabel( unicode("réactivité nous permettent d'être sélectionnés et adoptés", 'latin-1') )
ylabel( unicode('Andr\xc3\xa9 was here!', 'utf-8') )
text( 0.5, 2.5, unicode('Institut für Festkörperphysik', 'latin-1'), rotation=45)
text( 1, 1.5, u'AVA (check kerning)')
savefig('test.svg')
show()