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) tck.label1 = tck._get_text1() Regards, -JJ On Tue, Feb 16, 2010 at 4:20 PM, Filipe Pires Alvarenga Fernandes <ocef...@gmail.com> wrote: > "\\" 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 \ did not worked. >> > I tried: >> > >> > majorF = DateFormatter("\\n \\n %b") >> > >> > How should I escape the \n ? >> >> In theory, "\\n \\n %b" or r"\n \n %b", however only the former >> seems to work in my computer. >> >> There's another problem: \n is not a valid LaTeX command. >> I tried with \\ and with \newline but neither appear to work. >> \vspace{10pts} does insert whitespace, however I am not sure if >> it's the proper way of doing it... >> >> Bye. >> >> > >> > > majorF = DateFormatter("\n \n %b") # problem >> > > ^^ ^^ >> > > A common mistake. >> > > You forgot to escape the "\" characters. >> > > >> > > Bye. >> > > >> > > Ernest > >> Thanks Ernest, I had no idea that the DateFormatter was going to be >> treated > > ------------------------------------------------------------------------------ > 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 > > ------------------------------------------------------------------------------ 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