我正在尝试使用 JavaPlot 自动绘制一些数据。关于图表的一切都生成得很好,但它只使用了一半的画布。我可以调整画布大小,图表也会相应调整,总是使用一半的画布。我似乎找不到任何可以解决此问题的方法。
JavaPlot jPlot = new JavaPlot();
String norm = normalized ? "Normalized" : "Absolute";
PostscriptTerminal epsf = new PostscriptTerminal(String.format("output/graphs/%s_%s_%s.pdf", dataset.toString(), distribution.getName(), norm));
jPlot.setTerminal(epsf);
jPlot.setTitle(String.format("%s %s %s", dataset.toString(),
distribution.getName(), norm));
jPlot.getAxis("x").setLabel("Budget");
jPlot.getAxis("y").setLabel((norm) + " Performance");
jPlot.setKey(JavaPlot.Key.TOP_LEFT);
/* Adding data code not shown */
jPlot.newGraph();
jPlot.plot();