public void AddPoint(double x, double y) { if (XValues == null) { XValues = new ScatterPlotValues(new List <double>()); } if (YValues == null) { YValues = new ScatterPlotValues(new List <double>()); } XValues.AddValue(x); YValues.AddValue(y); Adjust(x, y); }