public void removeAllPlots(){
  m_plot2D.removeAllPlots();
  m_legendPanel.setPlotList(m_plot2D.getPlots());
}

public void removeAllPlots ( ) { m_plot2D . removeAllPlots ( ) ; m_legendPanel . setPlotList ( m_plot2D . getPlots ( ) ) ; }
removes all the plots .
