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

Re: [Matplotlib-users] multiple lines

2010-06-02 Thread Howard Sun
: Tuesday, June 01, 2010 7:07 PM To: matplotlib-users@lists.sourceforge.net Subject: Re: [Matplotlib-users] multiple lines On 06/01/2010 02:47 PM, Benjamin Root wrote: Howard, Are you trying to plot 4 lines with the same y-axis or with two or more y-axes? I only ask because the values of your

Re: [Matplotlib-users] multiple lines

2010-06-01 Thread Howard Sun
Sorry for the newbie question, how do you plot one x with multiple ys. In below data, x column is followed by 5 y columns: Many thanks! Howard 2 1.e+00 6.6232e-02 9.9392e-03 2.2992e-02 3.8111e-07 3 6.3664e-01 1.0269e-01 7.9107e-03 1.8254e-02 1.1391e-07 4 2.7590e-01 4.9783e-02 6.2644e-03

Re: [Matplotlib-users] multiple lines

2010-06-01 Thread Alan G Isaac
On 6/1/2010 7:05 PM, Howard Sun wrote: Sorry for the newbie question, how do you plot one x with multiple ys. In below data, x column is followed by 5 y columns Matplotlib has excellent documentation: http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.plot hth, Alan

Re: [Matplotlib-users] multiple lines

2010-06-01 Thread Angus McMorland
On 1 June 2010 19:05, Howard Sun h...@nvidia.com wrote: Sorry for the newbie question, how do you plot one x with multiple ys. In below data, x column is followed by 5 y columns: Many thanks! You can make an x vector and a y array, so that the first dimension of y is the same length as x:

Re: [Matplotlib-users] multiple lines

2010-06-01 Thread Malte Dik
Howard Sun h...@nvidia.com Sorry for the newbie question, how do you plot one x with multiple ys. In below data, x column is followed by 5 y columns: Many thanks! Howard 2 1.e+00 6.6232e-02 9.9392e-03 2.2992e-02 3.8111e-07 3 6.3664e-01 1.0269e-01 7.9107e-03 1.8254e-02 1.1391e-07 4

Re: [Matplotlib-users] multiple lines

2010-06-01 Thread Benjamin Root
Howard, Are you trying to plot 4 lines with the same y-axis or with two or more y-axes? I only ask because the values of your 5th column are many orders of magnitude smaller than the values of the other ys. If you want multiple y-axes on the same plot, then you might want to look at Parasite

Re: [Matplotlib-users] multiple lines

2010-06-01 Thread Eric Firing
On 06/01/2010 02:47 PM, Benjamin Root wrote: Howard, Are you trying to plot 4 lines with the same y-axis or with two or more y-axes? I only ask because the values of your 5th column are many orders of magnitude smaller than the values of the other ys. If you want multiple y-axes on the

Re: [Matplotlib-users] multiple lines

2010-06-01 Thread Benjamin Root
Malte, You may want to look into Numpy's genfromtxt() or loadtxt() functions. They will make your life so much easier for loading data from a text file. Ben Root On Tue, Jun 1, 2010 at 6:47 PM, Malte Dik malte@web.de wrote: Howard Sun h...@nvidia.com Sorry for the newbie question, how

Re: [Matplotlib-users] Multiple lines with axhline?

2008-06-27 Thread Angus McMorland
2008/6/27 Angus McMorland [EMAIL PROTECTED]: Hi all, I sometimes find myself wanting to plot a series of lines using axhline or axvline. Is there a mechanism to do this that I'm missing, or would it be difficult to support the positional parameter being an array of values at which to draw