Fix autoscale w/ samples

Autoscaling was broken when using samples instead of data points. This fixes that.