String xAxisLabel,
String yAxisLabel,
String[] seriesNames,
Double[][] seriesInt) {
XYSeries[] series = new XYSeries[seriesInt.length];
XYSeriesCollection dataset = new XYSeriesCollection();
XYItemRenderer renderer = new XYLineAndShapeRenderer(true, false);
renderer.setSeriesPaint(1, Color.black);
renderer.setSeriesStroke(1, new BasicStroke(0.75f));
renderer.setSeriesPaint(0, Color.red);
renderer.setSeriesStroke(0, new BasicStroke(1.5f));
for (int i = 0; i < seriesInt.length; i++) {
series[i] = new XYSeries(seriesNames[i]);
for (int j = 0; j < seriesInt[i].length; j++) {
try {
series[i].add(j, seriesInt[i][j]);
} catch (Exception e) {
}
}
dataset.addSeries(series[i]);
}
NumberAxis domain = new NumberAxis(xAxisLabel);
NumberAxis range = new NumberAxis(yAxisLabel);
XYPlot plot = new XYPlot(dataset, domain, range, renderer);