@Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (!(o instanceof PlotFunction)) return false;

    PlotFunction that = (PlotFunction) o;

    return xyFunction.equals(that.xyFunction);
  }
 @Override
 public int hashCode() {
   return xyFunction.hashCode();
 }