On Tue, Feb 16, 2010 at 9:53 PM, John Hunter <jdh2...@gmail.com> wrote:
> On Tue, Feb 16, 2010 at 3:57 PM, Ernest Adrogué <eadro...@gmx.net> wrote:
>> 16/02/10 @ 16:20 (-0500), thus spake Filipe Pires Alvarenga Fernandes:
>>> "\\"  works for titles and label, but not for DateFormatter, but \vspace did
>>> the trick!
>>>
>>> Thanks again for the help.
>>>
>>> ps: I'm new to python, but maybe there is a way to mix Latex and unicode?
>>
>> Yes, the inputenc package from latex lets you use unicode.
>> Try adding this to your script:
>> plt.rc('text.latex', preamble='\usepackage[utf]{inputenc}')
>>
>> Note that this setting is not officially supported, whatever
>> that means :)
>
> I think it means that Darren, who did most of the heavy lifting for
> these features, was getting tired of the endless line of additional
> things TeX users wanted to do and the difficulties supporting these
> across all platforms (eg MikTex on Windows) and drew a line in the
> sand saying "I'll add this stuff but if you report problems I may not
> stay up all night trying to fix them".

That is a fair explanation. Adding arbitrary lines to the latex
preamble adds an incredible amount of flexibility if you are a user,
and it provides plenty of rope with which to hang yourself if you are
a developer (answering questions/problems related to people writing
bad python code, misconfigured latex installations, and bad latex
code!). At the time, we had finally shaped the latex backend into
something that worked across platforms (and different versions of
latex installations), plus I was also finishing up grad school and
starting a new job, so I had reservations about even adding this
feature to the library. But people really wanted it so we compromised.

Darren

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to