Added a setting to limit the maximum number of points plotted on a graph