File: unicode_demo.py

package info (click to toggle)
matplotlib 0.98.1-1%2Blenny4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 18,624 kB
  • ctags: 22,599
  • sloc: python: 76,915; cpp: 63,459; ansic: 5,353; makefile: 111; sh: 12
file content (13 lines) | stat: -rw-r--r-- 419 bytes parent folder | download
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('Dvelopps et fabriqus', 'latin-1') )
xlabel( unicode("ractivit nous permettent d'tre slectionns et adopts", 'latin-1') )
ylabel( unicode('Andr\xc3\xa9 was here!', 'utf-8') )
text( 0.5, 2.5, unicode('Institut fr Festkrperphysik', 'latin-1'), rotation=45)
text( 1, 1.5, u'AVA (check kerning)')

savefig('test')
show()