code: private void detachPlot(SVGPlot oldplot) {
      if(oldplot == null) {
        return;
      }
      this.plot = null;
      oldplot.unsynchronizeWith(synchronizer);
    }
docs: Execute the detaching event.
  
  @param oldplot Plot to detach from.