}
XYSeriesCollection dataCol = new XYSeriesCollection(serie);
JFreeChart chart = ChartFactory.createScatterPlot(
"Dependency Scatter Plot", firstValue.text() + " " + firstValue.unit(),
secondValue.text() + " " + secondValue.unit(), dataCol,
PlotOrientation.HORIZONTAL, true, true, false);
chart.addSubtitle(new TextTitle("Each dot represents the value combination of one edge\n" +
"Only non-zero values are considered"));
ChartFrame frame = new ChartFrame("Dependency Scatter Plot", chart);
frame.setIconImage(Toolkit.getDefaultToolkit().getImage(