Re: [Matplotlib-users] Strange plot_date problem

2012-02-08 Thread Ted To
On 02/08/2012 11:28 AM, John Hunter wrote: > > OK, here is where the problem is. In the plt.axis call you are setting > the x-axis min to 0 which is not a legal date value. I suggest letting > the x-axis take care of itself, and set the y-axis limits with > > plt.ylim(-1.5, 1.5) > > JDH Man

Re: [Matplotlib-users] Strange plot_date problem

2012-02-08 Thread John Hunter
On Wed, Feb 8, 2012 at 10:24 AM, Ted To wrote: > On 02/08/2012 11:17 AM, John Hunter wrote: > > > > > > On Wed, Feb 8, 2012 at 10:06 AM, Ted To > > wrote: > > > > If it hasn't been fixed, is there a workaround? > > > > On 02/08/2012 10:42 AM, Ted To wrote: >

Re: [Matplotlib-users] Strange plot_date problem

2012-02-08 Thread Ted To
On 02/08/2012 11:17 AM, John Hunter wrote: > > > On Wed, Feb 8, 2012 at 10:06 AM, Ted To > wrote: > > If it hasn't been fixed, is there a workaround? > > On 02/08/2012 10:42 AM, Ted To wrote: > > I believe I have traced it to some axhline and axis comma

Re: [Matplotlib-users] Strange plot_date problem

2012-02-08 Thread John Hunter
On Wed, Feb 8, 2012 at 10:06 AM, Ted To wrote: > If it hasn't been fixed, is there a workaround? > > On 02/08/2012 10:42 AM, Ted To wrote: > > I believe I have traced it to some axhline and axis commands and this is > > apparently an old problem. Does it work with version 1.1.0? I have > > 1.0.

Re: [Matplotlib-users] Strange plot_date problem

2012-02-08 Thread Ted To
If it hasn't been fixed, is there a workaround? On 02/08/2012 10:42 AM, Ted To wrote: > I believe I have traced it to some axhline and axis commands and this is > apparently an old problem. Does it work with version 1.1.0? I have > 1.0.1 installed on a debian system. > > On 02/08/2012 09:47 AM,

Re: [Matplotlib-users] Strange plot_date problem

2012-02-08 Thread Ted To
I believe I have traced it to some axhline and axis commands and this is apparently an old problem. Does it work with version 1.1.0? I have 1.0.1 installed on a debian system. On 02/08/2012 09:47 AM, Ted To wrote: > Hi, > > I'm experiencing a very strange problem with plot_date that I can't > f

[Matplotlib-users] Strange plot_date problem

2012-02-08 Thread Ted To
Hi, I'm experiencing a very strange problem with plot_date that I can't figure out. pyplot.plot_date(pylab.date2num(dates),diff,'b-',label='Chained') pyplot.show() dates, naturally, is a list of dates and diff is an array of floats. With my script, this fails. But if I interactively ent