Limit 2d plots to 500 datapoints to avoid crashes