Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Spline curves #44

Closed
GoogleCodeExporter opened this issue Oct 23, 2015 · 5 comments
Closed

Feature: Spline curves #44

GoogleCodeExporter opened this issue Oct 23, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link

It would be nice to have some kind of spline curves (smoothed curves) in 
addition to (edgy) line charts.
would need some kind of interpolation.

best regards, achim

Original issue reported on code.google.com by achim.ha...@googlemail.com on 25 Jan 2011 at 9:09

@GoogleCodeExporter
Copy link
Author

Data manipulation sounds like a job for another library.  You can accomplish 
smoothing by interpolating your data ahead of plotting it using something like 
the Apache Commons Math library:  
http://commons.apache.org/math/userguide/overview.html

Regards,

Eric

Original comment by ericdla...@gmail.com on 11 Apr 2011 at 3:33

@GoogleCodeExporter
Copy link
Author

Original comment by dandrome...@gmail.com on 30 May 2011 at 3:23

  • Added labels: Priority-Low
  • Removed labels: Priority-Medium

@GoogleCodeExporter
Copy link
Author

I just downloaded the source, and implemented it, but don't know how to 
contribute the code. 

Original comment by kaj.bjur...@gmail.com on 25 Jul 2011 at 5:08

@GoogleCodeExporter
Copy link
Author

Here's the source for the CubicLineChart, and some example code. I also had 
some changes in the "random demo", but reverted them. Would be nice if you 
added an entry there too. 

The smoothness parameter is explained a bit in the class. It's basically how 
"near" the way points should be placed to the control point that it is 
approaching. A smoothness of 0.1 mean that waypoint should be placed 10% away 
from the control point, smoothness of 0.5 means that is should be placed half 
way there. 0.1 will generate less smooth, but more accurate, and 0.5 will be 
very smooth.


Original comment by kaj.bjur...@gmail.com on 25 Jul 2011 at 7:52

Attachments:

@GoogleCodeExporter
Copy link
Author

I modified the code a little bit and checked in.
Thanks a lot for the great contribution. SVN rev. r262.

Original comment by dandrome...@gmail.com on 26 Jul 2011 at 3:02

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant