Masked invalid values before ps plot.