Sorry looks like my smartphone's copy/paste removed carriage return in certain places in the script :-(

On Jun 13, 2012 12:32 PM, "Chris Withers" <> wrote:
Hi all,

I have some time series of disk usage that I'd like to do a linear
regression on an plot on a nice graph with Mb used on the y-axis and
date on the x axis.

I tried to use pylab.polyfit(dates, usage) where:

dates = [datetime(x, y, z), datetime(a, b, c), ...]
usage = [12123234, 2234235235, ...]

...but polyfit doesn't like the dates.

How should I do this?

Any example of a nice plot and linear regression using matplotlib?



Simplistix - Content Management, Batch Processing & Python Consulting

Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
Matplotlib-users mailing list