public void resetGraph(){
        xAxis.setLowerBound(xLowerBoundInitial);
        yAxis.setLowerBound(yLowerBoundInitial);
        xAxis.setUpperBound(xUpperBoundInitial);
        yAxis.setUpperBound(yUpperBoundInitial);
        xUpperBound = xUpperBoundInitial;
        xLowerBound = xLowerBoundInitial;
        yUpperBound = yUpperBoundInitial;
        yLowerBound = yLowerBoundInitial;
        series.getData().remove(0, series.getData().size());
    }