如何将 jfreechart 中的符号居中

发布于 2025-01-03 08:55:36 字数 86 浏览 2 评论 0原文

我有一个带有符号和线条的 jfreechart。绘制符号时,符号的顶部会接触线条。我不确定线条或符号哪个位置正确。但是,应该改变什么才能使符号的中心在线上呢?

I have a jfreechart with symbols and line drawn. The symbols are plotted so that the top of the symbol touches the line. I'm not sure which is in the correct position, the line or the symbol. But, what should be changed so that the center of the symbol is on the line?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

2025-01-10 08:55:36

静态方法 < code>DefaultDrawingSupplier.createStandardSeriesShapes() 定义标准 Shape 序列。关于检查,很明显每个Shape关于原点对称。相反,听起来您的Shape包括原点作为其边界上的点。 sscce屏幕截图 可能会澄清问题。 ShapeUtilities,如图所示此处包含更多示例。

The static method DefaultDrawingSupplier.createStandardSeriesShapes() defines the standard Shape sequence. On inspection, it's apparent that each Shape is symmetric about the origin. In contrast, it sounds like your Shape includes the origin as a point on its boundary. An sscce and screenshot may clarify the matter. ShapeUtilities, illustrated here, includes more examples.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文