m_attrib.setX(0); m_attrib.setY(0);
    public void addPlot(PlotData2D newPlot) throws Exception {      if (m_plot2D.getPlots().size() == 0) {	//	m_preds = newPlot.m_preds;	m_plot2D.addPlot(newPlot);	m_attrib.setInstances(newPlot.m_plotInstances);	m_classPanel.setInstances(newPlot.m_plotInstances);	// if the master plot is for clusterer predictions	m_colourUsingPreds = newPlot.m_colourUsingPreds;	// Ensure the attribute panel and class panel	// are set up correctly if there is no class index	// set in the data for this plot AND there are predictions	if (newPlot.m_plotInstances.classIndex() < 0 &&	    newPlot.m_colourUsingPreds == true) {	  m_attrib.setPredictions(newPlot.m_preds);	  m_attrib.setColourUsingPreds(true);	  m_classPanel.setColourUsingPreds(true);	  m_classPanel.m_numPreds = newPlot.m_highestPred+1;	}	plotReset(newPlot.m_plotInstances, newPlot.getCindex());	if (newPlot.m_useCustomColour) {	  VisualizePanel.this.remove(m_classSurround);	  switchToLegend();	  m_legendPanel.setPlotList(m_plot2D.getPlots());	  m_ColourCombo.setEnabled(false);	}      } else  {	if (!newPlot.m_useCustomColour) {	  VisualizePanel.this.add(m_classSurround, BorderLayout.SOUTH);	  m_ColourCombo.setEnabled(true);	}	if (m_plot2D.getPlots().size() == 1) {	  switchToLegend();	}	m_plot2D.addPlot(newPlot);	m_legendPanel.setPlotList(m_plot2D.getPlots());      }    }