|
From: Damon M. <dam...@gm...> - 2012-10-09 21:02:04
|
On Tue, Oct 9, 2012 at 10:56 PM, Damon McDougall
<dam...@gm...> wrote:
> On Tue, Oct 9, 2012 at 10:32 PM, Nikolaus Rath <Nik...@ra...> wrote:
>> Hello,
>>
>> For some reason, my matplotlib isn't able to print percent signs ('%')
>> properly:
>>
>> [1] inspiron:~/tmp# cat mplbug.py
>>
>> import matplotlib
>> import matplotlib.pyplot as plt
>> import numpy as np
>>
>> print matplotlib.__version__
>> plt.plot(np.arange(10), np.arange(10)**2)
>> plt.xlabel('Percent [%]')
>> plt.savefig('mplbug.pdf')
>>
>> [0] inspiron:~/tmp# python mplbug.py
>> 1.1.1rc2
>>
>> I have attached the resulting PDF. For some reason, the slash in the
>> percent sign becomes a triangle that partially covers the upper left
>> circle.
>>
>> Known bug? Any workarounds that don't require upgrading (I'd like to
>> stick with the Debian package)?
>>
>>
>> Thanks,
>>
>> -Nikolaus
>>
>> --
>> »Time flies like an arrow, fruit flies like a Banana.«
>>
>> PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 02CF A9AD B7F8 AE4E 425C
>
> I'm using the AGG backend and saving to a png file without any
> problems, but I'm using the current git master branch. I'll try to see
> if I can recreate on 1.1.1rc2. Watch this space.
No dice. I still can't recreate your problem on OS X 10.7.4 with
matplotlib version 1.1.1-rc2.
What are your font/tex specifications in the matplotlib.rcParams dictionary?
--
Damon McDougall
http://www.damon-is-a-geek.com
B2.39
Mathematics Institute
University of Warwick
Coventry
West Midlands
CV4 7AL
United Kingdom
|