Re: [Matplotlib-users] Plotting Matlab NaNs in matplotlib

2008-04-19 Thread Eric Firing
Fernando, Your example works as you describe on recent matplotlib versions. I suspect you are using an old one. The preferred way of handling missing points in numpy, and therefore in matplotlib and pylab, however, is via masked arrays. import pylab import numpy as np from numpy import ma a =

[Matplotlib-users] Plotting Matlab NaNs in matplotlib

2008-04-19 Thread Fernando Abilleira
Dear sourceforge community, I come from a Matlab environment so I am used to plotting matrices that contain NaN elements. This is very useful because in some cases one doesn't have data for the entire matrix. If one tries plotting the data, the NaN elements won't be plotted. Is there a similar el