Code: Select all
convergencePlot = new CombinedDomainXYPlot(objPlot.getDomainAxis());
convergencePlot.setGap(12D);
convergencePlot.setBackgroundPaint(Color.white);
convergencePlot.setDomainGridlinePaint(Color.gray);
convergencePlot.setRangeGridlinePaint(Color.gray);
convergencePlot.setDomainGridlinesVisible(true);
convergencePlot.setDomainPannable(true);
panel = new ChartPanel(jfreechart);
return panel;
Q2: In case of combinedXYplot is it possible to set the color for each line manually? when i have more than 3 plots, i really get very light colors which are hard to see.
Thanks in advance