Re: [Matplotlib-users] DateFormatter + Latex issue

2010-02-17 Thread Darren Dale
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

Re: [Matplotlib-users] DateFormatter + Latex issue

2010-02-17 Thread PHobson
On Tue, Feb 16, 2010 at 9:53 PM, John Hunter jdh2...@gmail.com wrote: 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

Re: [Matplotlib-users] DateFormatter + Latex issue

2010-02-16 Thread Ernest Adrogué
15/02/10 @ 19:22 (-0500), thus spake Filipe Pires Alvarenga Fernandes: Hello list, If I use DateFormatter with latex and lines breaks like this DateFormatter(\n \n %b) I get an latex error: http://pastebin.com/m5b186ded Although, if I do not use the line breaks, DateFormatter(%b)

Re: [Matplotlib-users] DateFormatter + Latex issue

2010-02-16 Thread Filipe Pires Alvarenga Fernandes
Thanks Ernest, I had no idea that the DateFormatter was going to be treated as latex as well. However, escaping the \ with another \ did not worked. I tried: majorF = DateFormatter(\\n \\n %b) How should I escape the \n ? majorF = DateFormatter(\n \n %b) # problem

Re: [Matplotlib-users] DateFormatter + Latex issue

2010-02-16 Thread Ernest Adrogué
16/02/10 @ 09:03 (-0500), thus spake Filipe Pires Alvarenga Fernandes: Thanks Ernest, I had no idea that the DateFormatter was going to be treated as latex as well. Yes, all strings are processed by LaTeX. However, escaping the \ with another \ did not worked. I tried: majorF =

Re: [Matplotlib-users] DateFormatter + Latex issue

2010-02-16 Thread 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? as latex as well. Yes, all strings are processed by LaTeX. However, escaping the \ with another \

Re: [Matplotlib-users] DateFormatter + Latex issue

2010-02-16 Thread Ernest Adrogué
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

Re: [Matplotlib-users] DateFormatter + Latex issue

2010-02-16 Thread Jae-Joon Lee
On Tue, Feb 16, 2010 at 4:05 PM, Ernest Adrogué eadro...@gmx.net wrote: \vspace{10pts} does insert whitespace, however I am not sure if it's the proper way of doing it... Can you (or someone else) confirm this? I don't think pts is a proper tex unit and it should be \vspace{10pt}. Maybe this

Re: [Matplotlib-users] DateFormatter + Latex issue

2010-02-16 Thread PHobson
-Original Message- From: Ernest Adrogué [mailto:eadro...@gmx.net] Sent: Tuesday, February 16, 2010 1:58 PM To: matplotlib-users@lists.sourceforge.net Subject: Re: [Matplotlib-users] DateFormatter + Latex issue 16/02/10 @ 16:20 (-0500), thus spake Filipe Pires Alvarenga Fernandes

Re: [Matplotlib-users] DateFormatter + Latex issue

2010-02-16 Thread Jae-Joon Lee
If what you want is to have more padding for the major tick labels, I recommend you to use rcParams['xtick.major.pad'] = 20 If you don't like to change the global setting, you may set the ticklabel padding for an specific axis. Try for tck in ax.xaxis.get_major_ticks(): tck.set_pad(20)

Re: [Matplotlib-users] DateFormatter + Latex issue

2010-02-16 Thread Ernest Adrogué
Hi, 16/02/10 @ 17:01 (-0500), thus spake Jae-Joon Lee: On Tue, Feb 16, 2010 at 4:05 PM, Ernest Adrogué eadro...@gmx.net wrote: \vspace{10pts} does insert whitespace, however I am not sure if it's the proper way of doing it... Can you (or someone else) confirm this? I don't think pts is

Re: [Matplotlib-users] DateFormatter + Latex issue

2010-02-16 Thread Filipe Pires Alvarenga Fernandes
JJ: Wonderful, simple and much less messy and Latex+unicode. Although, now I'm fascinated by the Latex possibilities! Ernest: I haven't notice the s before when using pts, but what is really strange is that pt does not work! Thank you all again, Filipe

Re: [Matplotlib-users] DateFormatter + Latex issue

2010-02-16 Thread Jae-Joon Lee
On Tue, Feb 16, 2010 at 5:25 PM, Filipe Pires Alvarenga Fernandes ocef...@gmail.com wrote:  I haven't notice the s before when using pts, but what is really strange is that pt does not work! As I said, it is not supposed to work, because of some technical reason. When there is a single line of

Re: [Matplotlib-users] DateFormatter + Latex issue

2010-02-16 Thread John Hunter
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

[Matplotlib-users] DateFormatter + Latex issue

2010-02-15 Thread Filipe Pires Alvarenga Fernandes
Hello list, If I use DateFormatter with latex and lines breaks like this DateFormatter(\n \n %b) I get an latex error: http://pastebin.com/m5b186ded Although, if I do not use the line breaks, DateFormatter(%b) The problem disappears. Below is a script that reproduces what I'm talking about: