[Matplotlib-users] Missing data in a date graph

2008-01-15 Thread Lucas Di Pentima
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I'm starting with matplotlib, using it to build a performance monitor web application. The plots I'm using mostly are date based graphs, what's the best way to go when I have to plot some data that have gaps inside the date ranges? The

Re: [Matplotlib-users] Missing data in a date graph

2008-01-15 Thread Michael Droettboom
You can use a numpy masked array, and mask the values that you don't want to plot. Or you can use a normal numpy array and set the missing values to numpy.nan. (There seem to be a few side cases where the second option doesn't do what you would expect in 0.91.2, but AFAIK it works in recent