I've created a CombinedDomainXYPlot chart with 4 subplots. #1 and #2 subplot have the same height, that's correct. I would like to set the heigh for #3 and #4 subplot.
Reading the forum I've searched these topics
viewtopic.php?f=3&t=25563&hilit=height+subplot
viewtopic.php?f=3&t=25357
In which is recommended to use setWeight(int) in order to control the height of each subplot. I've used it but nothing happens. (I know that there are other factors affects to subplot heigh such as legend, labels,...).
I also set some other properties that I found in other topics related to chart heigh, before adding to CombinedDomainXYPlot.
Code: Select all
LOGGER.error("INSETS plot1: " + xyplot.getInsets());
xyplot.setInsets(new RectangleInsets(0, 8, 0, 8), true);
LOGGER.error("INSETS plot2: " + xyplot.getInsets());
LOGGER.error("AXIS plot1: " + xyplot.getAxisOffset());
RectangleInsets a = new RectangleInsets(-10, 0, -10, 0);
xyplot.setAxisOffset(a);
LOGGER.error("AXIS plot2: " + xyplot.getAxisOffset());
localCombinedDomainXYPlot.add(xyplot);
Setting AxisSpace for subplot #3 and #4
Code: Select all
AxisSpace space = new AxisSpace();
space.setBottom(80D);
space.setTop(80D);
space.setLeft(80D);
space.setRight(80D);
xyplot.setFixedDomainAxisSpace(space, true);
It's like changing subplot AxisSpace doesn't notify CombinedDomainXYPlot.
How can I managed to remove the blank space between charts?