mainPanel.add(left, BorderLayout.WEST);
// Puts graph in the right panel
// Creates label for X-axis
String xLabel = "";
graph = new NewPlot();
xLabel = "Number of epochs";
graph.setXLabel(xLabel);
graph.setXRange(0, 30);
graph.setYLabel("Burstiness factor " + currentIndex);
mainPanel.add(graph, BorderLayout.CENTER);