Code: Select all
combinedDomainXYPlot.add(plot1, 2)
combinedDomainXYPlot.add(plot2, 1)

If I had added the two sub-XYPlots, and then changed their weight, the code like,
Code: Select all
List subplots = combinedDomainXYPlot.getSubplots();
XYPlot plot1 = (XYPlot) subplots.get(0);
XYPlot plot2 = (XYPlot) subplots.get(1);
plot1.setWeight(1);
plot2.setWeight(1);

It seems that something did't know the change.
How to cancel the trouble?
Thanks!