Hello,
i have couple of points and want to draw smooth curve on XY Scatter plot which best fits all points as shown below (blue colour line with pink colour points). sometimes the points would be too scattered, but still i would require smooth curve
I tried using XYSmoothLineAndShapeRenderer but the line is not as smooth as required
Hint: can we use something like Bezier curve or spline curve? If Yes please let me know how to implement the same
if required i can upload the code which i have done..
Thanks in advance,
Pranav C Lunavat
drawing smooth curve
Re: drawing smooth curve
Hello,
can any body help me out about how to use bezier curve in XY scatter chart
Regards,
Pranav C Lunavat
can any body help me out about how to use bezier curve in XY scatter chart
Regards,
Pranav C Lunavat
-
- Posts: 1634
- Joined: Sat Feb 17, 2007 1:51 pm
Re: drawing smooth curve
Googling for "java bezier curve from points" gives the following link as first hit:
http://www.java2s.com/Code/Java/2D-Grap ... rcurve.htm
http://www.java2s.com/Code/Java/2D-Grap ... rcurve.htm