[Matplotlib-users] Multiple lines of xtick_labels

2014-08-15 Thread Ted To
Hi, I'm trying to set two lines of xtick_labels But I can't figure out how to get them on separate lines. These are for errorbars where I have two variables for each of four categories. Using the following code, I'm able to create the attached figure. How does one move the minor xtick_labels

Re: [Matplotlib-users] Multiple lines of xtick_labels

2014-08-15 Thread Sterling Smith
How about prepending '\n' to your minor labels? On Aug 15, 2014, at 1:38PM, Ted To wrote: Hi, I'm trying to set two lines of xtick_labels But I can't figure out how to get them on separate lines. These are for errorbars where I have two variables for each of four categories. Using the

Re: [Matplotlib-users] Multiple lines of xtick_labels

2014-08-15 Thread Thomas Caswell
Use the `pad` property which sets how far the tick labels are from the axis. ax1.tick_params(axis='x',which='minor',bottom='off',top='off', pad=25) iirc, the units on pad are font-points Tom On Fri, Aug 15, 2014 at 5:21 PM, Sterling Smith smit...@fusion.gat.com wrote: How about prepending

Re: [Matplotlib-users] Multiple lines of xtick_labels

2014-08-15 Thread Ted To
Many thanks! The 'pad=25' property worked great. I also tried prepending '\n' to the minor labels but it threw an error -- I'll confess that I did not try very hard since 'pad=25' worked. On 08/15/2014 05:28 PM, Thomas Caswell wrote: Use the `pad` property which sets how far the tick labels