List of usage examples for weka.gui.beans ScatterPlotMatrix setInstances
@Override public void setInstances(Instances inst) throws Exception
From source file:com.sliit.views.DataVisualizerPanel.java
void getScatterPlot() { try {/*from w w w. j ava2 s . co m*/ Reader r = new BufferedReader(new FileReader(datasetPathText.getText())); Instances inst = new Instances(r); final ScatterPlotMatrix scatterPlotMatrix = new ScatterPlotMatrix(); scatterPlotMatrix.setInstances(inst); scatterplotpanel.removeAll(); scatterplotpanel.add(scatterPlotMatrix, "scatterplotpanel", 0); scatterplotpanel.revalidate(); } catch (Exception ex) { ex.printStackTrace(); System.err.println(ex.getMessage()); } }
From source file:org.processmining.analysis.traceclustering.ui.TraceClusteringUI.java
License:Open Source License
protected JPanel getScatterPoltMatrix() { ScatterPlotMatrix dv = new ScatterPlotMatrix(); try {//w w w . ja va 2 s .c om dv.setInstances(aggregateProfile.getWekaData()); dv.setPreferredSize(new Dimension(350, 350)); } catch (Exception ce) { } return dv; }