Re: [matplotlib-devel] strange message in contour

2014-06-17 Thread Benjamin Root
Which version of matplotlib are you using? Also, do you have an example dataset and a simple, self-contained example to demonstrate this? Chances are, there are NaNs occurring in the calculation, but since we have code elsewhere that handles NaNs properly, it probably isn't impacting your graph. H

[matplotlib-devel] strange message in contour

2014-06-17 Thread keith.briggs
Using pyplot.contour, I'm getting /usr/lib/pymodules/python2.7/matplotlib/contour.py:374: RuntimeWarning: invalid value encountered in true_divide dist = np.add.reduce(([(abs(s)[i]/L[i]) for i in range(xsize)]),-1) although the resulting plot seems to be ok. Keith -