use of org.jfree.data.xy.MatrixSeries in project Gemma by PavlidisLab.
the class VisualizeDataSetApp method showProfilesBubbleChartView.
public void showProfilesBubbleChartView(String title, double[][] dataMatrix, int numProfiles) {
if (dataMatrix == null)
throw new RuntimeException("dataMatrix cannot be " + null);
JFreeChart chart = ChartFactory.createXYLineChart(title, "Platform", "Expression Value", null, PlotOrientation.VERTICAL, false, false, false);
MatrixSeries series = new MatrixSeries(title, dataMatrix[0].length, dataMatrix.length);
XYPlot plot = chart.getXYPlot();
plot.setDataset(new MatrixSeriesCollection(series));
ChartFrame frame = new ChartFrame(title, chart, true);
this.showWindow(frame);
}
Aggregations