Use sampling constant to define number of points on graph