[Python-modules-team] Bug#691916: bug patched

Maksim Kuleshov mmcx at ucs.ru
Tue Nov 20 16:34:24 UTC 2012


test script:
#! /usr/bin/python
import matplotlib.pyplot as pp; pp.loglog([1,2]); pp.show()

test script:
#! /bin/sh
grep ItalicAngle /usr/share/fonts/X11/Type1/*.afm | grep ","

patch:
--- matplotlib-1.1.1~rc2.orig/lib/matplotlib/afm.py
+++ matplotlib-1.1.1~rc2/lib/matplotlib/afm.py
@@ -48,7 +48,7 @@ from _mathtext_data import uni2type1
 def _to_int(x):
     return int(float(x))
 
-_to_float = float
+_to_float = lambda x: float(x.replace(',','.'))
 _to_str =  str
 
 def _to_list_of_ints(s):



More information about the Python-modules-team mailing list