private XYPlot createScalabilityPlot(List<XYSeries> seriesList,
String xAxisLabel, NumberFormat xAxisNumberFormat,
String yAxisLabel, NumberFormat yAxisNumberFormat) {
NumberAxis xAxis = new NumberAxis(xAxisLabel);
if (useLogarithmicProblemScale(seriesList)) {
xAxis = new LogarithmicAxis(xAxis.getLabel() + " (logarithmic)");
}
xAxis.setNumberFormatOverride(xAxisNumberFormat);
NumberAxis yAxis = new NumberAxis(yAxisLabel);
yAxis.setNumberFormatOverride(yAxisNumberFormat);
XYPlot plot = new XYPlot(null, xAxis, yAxis, null);