Steve Schmerler a écrit :
> Darren Dale wrote:
>   
>> On Monday 11 December 2006 09:59, Nicolas Champavert wrote:
>>     
>>> Steve Schmerler a écrit :
>>>       
>>>> Nicolas Champavert wrote:
>>>>         
>>>>> Hello,
>>>>>
>>>>>   I have some problems when trying to save a figure with usetex=True.
>>>>> Sometimes, it is not possible to save the figure when trying to put an
>>>>> xlabel with LaTeX inside.
>>>>> It works with pylab.xlabel('M$_\odot$') but not with
>>>>> pylab.xlabel('10$^3$ M$_\odot$') (see below). Do you know why ?
>>>>>           
>>>> Works fine here, with and w/o raw strings.
>>>>         
>> [...]
>>     
>>> I had matplotlib revision 2835. I made an upgrade. Now I have revision
>>> 2905. I still have problem but it is very strange:
>>> - when I plot [0,1] with xlabel(r'(10$^3$ M$_\odot$)'), it works.
>>> - when I plot [1,2] with xlabel(r'Upper mass for the IMF (10$^3$
>>> M$_\odot$)'), it works.
>>> - but it doesn't work if I plot [0,1] with xlabel(r'Upper mass for the
>>> IMF (10$^3$ M$_\odot$)')...
>>>       
>> It sounds like an issue with one of the dependencies, probably ghostscript. 
>> I 
>> have matplotlib-0.87.7, svn revision 2905, and gpl-ghostscript-8.54. I can 
>> not reproduce the problem here.
>>
>>     
>
> I seem to be running ESP Ghostscript 8.15.3 (this is what 'gs --version' 
> and 'apt-cache show gs' tell me). All the examples work fine here ...
>
>   
I had Ghostscript 8.15.3 too. I have made an update to ghostscript 8.54 
and now it works.

Nicolas

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to