grafico
grafico copied to clipboard
Support for smoothing?
Does grafico support Kernel smoothing? I couldn't find anything in the docs to suggest it does, but thought I'd double check.
I'm interested in using grafico, but my application requires Kernel-smoothed values (I already have the code for calculating interpolations). I would be willing to contribute this code to grafico if it's something other people find useful.
Currently there are no smoothing options other than simply curving the line graphs with curve_amount. Smoothing options would be pretty nice to have as in my stream graph implementation (in my fork) it's hard to get the wiggle out.
Also, it'd be nice to have code that draws lines better through the fixed points, as now a Bezier curve is used simply by drawing control points at (x1+curve_amount, y1) and (x2-curve_amount, y2) which is nice if you have alternating data (up, down, up, etc.) but not when you have a steady rise or fall in the data.
I don't know if you've got the answer to that, but it'd already be nice to have the Kernel smoothing. Also, maybe it's wise to wait until Kilian has pulled my changes as there are some changes in drawing the data, or pull from my repository: not to be hostile and take over the fork, but at the moment it's more up to date.
hey kylefox,
As janpaul123 said, it doesn't support it yet, but it would be very nice! I'll be pulling janpaul123's changes in the next couple of days and bring it all up to date, it would be very awesome if you would contribute kernel smoothing after that! :)