JFreeChart 箱线图外观

JFreeChart Boxplot appearance

我需要创建箱线图来分析和评估测试结果。由于我在 Java 编程,this answer 说服我使用 JFreeChart。 BoxAndWhisker 图表似乎与我想要的相似。

我花了一天时间来实现和创建数据集和绘图,但我对结果感到困惑,也不是很满意。

这是我的预期(appearance/style 不是值): 这是我得到的:

BoxAndWhiskerRenderer may be inferred from the drawItem() source code. For example, the mean is indeed drawn using an Ellipse2D, and it's visibility is controlled using the eponymous mutator, setMeanVisible(). Similarly, an empty ellipse represents an outlier. A complete example is shown here中所用符号的含义。