julia> include("plotnan.jl")
INFO: Loading help data...
/Users/dss/anaconda/lib/python2.7/site-packages/matplotlib/colors.py:583:
RuntimeWarning: invalid value encountered in less
cbook._putmask(xa, xa < 0.0, -1)
PyObject <matplotlib.collections.PolyCollection object at 0x11993b4d0>
This is the code:
using PyPlot
x = rand(8,8)
x[1] = NaN
pcolor(x)
On Wednesday, November 26, 2014 8:05:32 AM UTC-6, Steven G. Johnson wrote:
>
>
>
> On Wednesday, November 26, 2014 12:45:09 AM UTC-5, David Smith wrote:
>>
>> My up-to-date version of Matplotlib won't plot NaNs either.
>>
>
> That's weird; it works fine for me in Matplotlib 1.4.0.
>
> In any case, you can always zero out the NaN values in W via:
> W[isnan(W)] = 0
> before plotting.
>