JFreeChart在实际值之外添加趋势线吗? [英] JFreeChart adding trendline outside of actual values?

查看:50
本文介绍了JFreeChart在实际值之外添加趋势线吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用三个数据序列(在JFreeChart中使用XYSplineRenderer)生成了一个图表,由于某些原因,蓝色和红色曲线在某些位置几乎是多项式拟合.该程序似乎认为曲线上方和下方都有一个虚构的数据点.

I generate a chart using three data series (using XYSplineRenderer in JFreeChart) and for some reason the blue and red curves have an almost polynomial fit in some spots. The program seems to think there is an imaginary data point above and below the curve.

有什么想法吗?谢谢!

推荐答案

XYSplineRenderer 使用自然三次样条线",因此效果是此处所示.

An XYSplineRenderer "connects data points with natural cubic splines," so the effect is expected. You might look at adjusting the precision, as shown here.

这篇关于JFreeChart在实际值之外添加趋势线吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆