Added support for NaN values in plot.