-
Notifications
You must be signed in to change notification settings - Fork 18
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
connect points by straight lines #130
Comments
Right now all lines are spline interpolated as that works well across many use cases. Unfortunately you can't control the "curviness" or even render straight lines. Technically that would of course be possible but we would need to implement that feature for regl-scatterplot first. I don't have the bandwidth for working on this at the moment but if you have time, please go ahead and take a stab at it. I don't think it would be a hard lift to enable straight lines as all we really need is to skip the spline interpolation step when creating the line segments. |
Can you point me to the code that deals with plotting the lines? |
It should be fairly straight forward. All we gotta do is have an option to skip |
I just realized, there's an easy workaround to achieve straight lines:
By increasing the tolerance, fewer to literally no interpolated points are added. E.g: With a tolerance of With a tolerance of This isn't the very best solution but at least it should get you there without any code changes. |
That's great, thanks for this workaround and for having another look at it! |
FYI, there are a few glitches related to connected scatterplots I recently found and fixed in #125. I'm hoping to cut a new release with the fixes soon 🤞 |
The example in the docs connects lines by curved lines:
Would it be possible to connect points with straight lines instead? How exactly are the lines computed?
The text was updated successfully, but these errors were encountered: