|
From: <md...@us...> - 2008-10-16 19:19:32
|
Revision: 6227
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6227&view=rev
Author: mdboom
Date: 2008-10-16 19:19:24 +0000 (Thu, 16 Oct 2008)
Log Message:
-----------
Fix encoding in these files. unicode_demo.py was in latin-1, though the coding marker said utf-8 (someone's editor didn't listen... ;) tex_unicode_demo.py was converted to utf-8 to be Sphinx compatible.
Modified Paths:
--------------
trunk/matplotlib/examples/pylab_examples/tex_unicode_demo.py
trunk/matplotlib/examples/pylab_examples/unicode_demo.py
Modified: trunk/matplotlib/examples/pylab_examples/tex_unicode_demo.py
===================================================================
--- trunk/matplotlib/examples/pylab_examples/tex_unicode_demo.py 2008-10-16 19:00:21 UTC (rev 6226)
+++ trunk/matplotlib/examples/pylab_examples/tex_unicode_demo.py 2008-10-16 19:19:24 UTC (rev 6227)
@@ -1,5 +1,5 @@
#!/usr/bin/env python
-# -*- coding: latin-1 -*-
+# -*- coding: utf-8 -*-
"""
This demo is tex_demo.py modified to have unicode. See that file for
more information.
@@ -18,7 +18,7 @@
plot(t, s)
xlabel(r'\textbf{time (s)}')
-ylabel(unicode(r'\textit{Velocity (\xB0/sec)}','latin-1'),fontsize=16)
+ylabel(unicode(r'\textit{Velocity (°/sec)}','latin-1'),fontsize=16)
title(r"\TeX\ is Number $\displaystyle\sum_{n=1}^\infty\frac{-e^{i\pi}}{2^n}$!",
fontsize=16, color='r')
grid(True)
Modified: trunk/matplotlib/examples/pylab_examples/unicode_demo.py
===================================================================
--- trunk/matplotlib/examples/pylab_examples/unicode_demo.py 2008-10-16 19:00:21 UTC (rev 6226)
+++ trunk/matplotlib/examples/pylab_examples/unicode_demo.py 2008-10-16 19:19:24 UTC (rev 6227)
@@ -3,10 +3,10 @@
from pylab import *
plot([1,2,4])
-title( unicode('D\xE9velopp\xE9s et fabriqu\xE9s', 'latin-1') )
-xlabel( unicode("r\xE9activit\xE9 nous permettent d'\xEAtre s\xE9lectionn\xE9s et adopt\xE9s", 'latin-1') )
+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\xFCr Festk\xF6rperphysik', 'latin-1'), rotation=45)
+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')
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|