在 JFreeChart 中手动指定对数轴上的刻度线
使用 JFreeChart 我有一个带有 LogAxis 的绘图,XYPlot 的域轴上带有刻度线,这些刻度线是根据图形的宽度自动确定的。我的域值为 0.01、0.05、0.1、0.5、1、5 和 10;因此,刻度线与我拥有的域值不一致。有没有办法手动指定轴的刻度线而不是自动计算它们?我尝试了 SimpleAxis 类,但它似乎只提供线性轴,而不提供对数轴。
Using JFreeChart I have a plot with a LogAxis with tick marks on the domain axis of an XYPlot that are determined automatically based on the width of the graph. My domain values are 0.01, 0.05, 0.1, 0.5, 1, 5, and 10; so, the tick marks do not line up with the domain values I have. Is there a way to manually specify an axis's tick marks rather than them being automatically calculated? I tried the SimpleAxis class but that seem to only supply linear-type axes, not logarithmic.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
试试这个:
try this: