changed xmin on plot to last 10 data points
changed xmin on plot to last 10 data points