JFreechart 主图像(不包括 YLabel)宽度因地块而异

JFreechart main image (excluding YLabel) width differ among plots

我正在使用 JFreechart 绘制一些 pdf 格式的报告。我不确定如何以最好的方式描述这一点,所以我将这些图留在下面。对于报告中的两个图,时间轴的宽度并不相同,如箭头所指。有什么提示我可以如何调整吗?

this is a snapshot

试试 Axis.setFixedDimension() (source).

请注意,combined plots, precisely to align the axes of various plots. If this is suitable in your case, using CombinedDomainXYPlot 使用此方法绘制您的两个图表将是最简单的解决方案。