draw fill_between matplotlib plot with nans
September 20th, 2011 by Lawrence David
nan’s cause problems with the fill_between plots in matplotlib.
to fix, use the “where” input argument:
fig, ax = pl.subplots(1)
ax.fill_between(x_v,0,y_v,where=np.isfinite(y_v))