mvpa2.misc.plot.scatter.fill_nonfinites

mvpa2.misc.plot.scatter.fill_nonfinites(a, fill=0, inplace=True)

Replace all non-finites (NaN, inf) etc with a fill value