如何将 jfreechart 中的符号居中
我有一个带有符号和线条的 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
静态方法 < code>DefaultDrawingSupplier.createStandardSeriesShapes() 定义标准
Shape
序列。关于检查,很明显每个Shape
关于原点对称。相反,听起来您的Shape
包括原点作为其边界上的点。 sscce 和 屏幕截图 可能会澄清问题。ShapeUtilities
,如图所示此处包含更多示例。The static method
DefaultDrawingSupplier.createStandardSeriesShapes()
defines the standardShape
sequence. On inspection, it's apparent that eachShape
is symmetric about the origin. In contrast, it sounds like yourShape
includes the origin as a point on its boundary. An sscce and screenshot may clarify the matter.ShapeUtilities
, illustrated here, includes more examples.