Re: [Matplotlib-users] datestr2num of year and month fails for February on September 30

2013-09-30 Thread Mark Bakker
The design of the function datestr2num, unfortunately, has an undesired side-effect. Today (September 30) I cannot convert monthly data, as February doesn't have 30 days. Conversion of: datestr2num('2000-02') Gives an error: ValueError: day is out of range for month Should I file a bug report or

Re: [Matplotlib-users] x axis non-uniform labeling (KURT PETERS)

2013-09-30 Thread KURT PETERS
I'm including the code below to demonstrate the problem. The top should have simtimedata (0 through 28) labeling the points. As you can see, MATPLOTLIB just distributes those values evenly instead of assigning them properly. Any ideas? #!/usr/bin/env python import numpy as np from matplotlib

Re: [Matplotlib-users] x axis non-uniform labeling (KURT PETERS)

2013-09-30 Thread Paul Hobson
On Mon, Sep 30, 2013 at 1:43 PM, KURT PETERS petersk...@msn.com wrote: I'm including the code below to demonstrate the problem. The top should have simtimedata (0 through 28) labeling the points. As you can see, MATPLOTLIB just distributes those values evenly instead of assigning them

Re: [Matplotlib-users] datestr2num of year and month fails for February on September 30

2013-09-30 Thread Eric Firing
On 2013/09/30 3:45 AM, Mark Bakker wrote: The design of the function datestr2num, unfortunately, has an undesired side-effect. Today (September 30) I cannot convert monthly data, as February doesn't have 30 days. Conversion of: datestr2num('2000-02') Gives an error: ValueError: day is out

Re: [Matplotlib-users] x axis non-uniform labeling (KURT PETERS)

2013-09-30 Thread KURT PETERS
That doesn't seem to fix it. What I'm expecting is at the top, 28 should correspond to the value -2. Instead it puts a 30 there. Kurt Date: Mon, 30 Sep 2013 16:20:50 -0700 Subject: Re: [Matplotlib-users] x axis non-uniform labeling (KURT PETERS) From: pmhob...@gmail.com To: petersk...@msn.com