[Matplotlib-users] Matplotlib (pylab) datetime incompatible with Egenix mxDateTime

2006-07-16 Thread Simon Hook
Hi, [cross posted to egenix and matplotlib] I have been using the egenix mxDateTime module and want to plot some of the dates with Matplotlib (pylab). Pylab uses num2date and date2num to covert datesandtimes to floating point values for plotting. Unfortunately if you give pylab date2num an

Re: [Matplotlib-users] Matplotlib (pylab) datetime incompatible with Egenix mxDateTime

2006-07-16 Thread John Hunter
Simon == Simon Hook [EMAIL PROTECTED] writes: Simon Hi, [cross posted to egenix and matplotlib] Simon I have been using the egenix mxDateTime module and want to Simon plot some of the dates with Matplotlib (pylab). Pylab uses Simon num2date and date2num to covert datesandtimes

Re: [Matplotlib-users] Matplotlib (pylab) datetime incompatible with Egenix mxDateTime

2006-07-16 Thread Simon Hook
Works like a champ. Thank you, S. John Hunter wrote: Simon == Simon Hook [EMAIL PROTECTED] writes: Simon Hi, [cross posted to egenix and matplotlib] Simon I have been using the egenix mxDateTime module and want to Simon plot some of the dates with Matplotlib

Re: [Matplotlib-users] pylab.semilogy() line plots and missing data

2006-07-16 Thread PGM
On Sunday 16 July 2006 19:38, Webb Sprague wrote: I have data with missing values represented by nans (like array([1.0, nan, 3.0]) that I am plotting with pylab.semilogy(). Please transform your array in a MaskedArray. import numpy as N masked_x=N.ma.masked_where(N.isnan(x),x) That should do

Re: [Matplotlib-users] pylab.semilogy() line plots and missing data

2006-07-16 Thread Webb Sprague
Masked arrays seem to do the trick. Is there a reason why the nan thing won't work? On 7/16/06, PGM [EMAIL PROTECTED] wrote: On Sunday 16 July 2006 19:38, Webb Sprague wrote: I have data with missing values represented by nans (like array([1.0, nan, 3.0]) that I am plotting with