Try removing NaN's during plotting.