-
Notifications
You must be signed in to change notification settings - Fork 74
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
Interactive spline #2545
Interactive spline #2545
Conversation
2d32edd
to
962c6e4
Compare
ad91271
to
1567fdd
Compare
574f7e0
to
f4db5b7
Compare
I tried testing this, and hit the following error immediately upon opening the Plot Options plugin:
Is Edit: Ah, looks like I might need an unreleased PR of Tom's? |
Thanks @rosteen for looking into this. Yes, to test this PR, the following need to be added to the env. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #2545 +/- ##
==========================================
- Coverage 91.51% 91.50% -0.01%
==========================================
Files 161 161
Lines 19596 19809 +213
==========================================
+ Hits 17934 18127 +193
- Misses 1662 1682 +20 ☔ View full report in Codecov by Sentry. |
5ebe33a
to
d911891
Compare
Co-authored-by: Kyle Conroy <[email protected]>
d911891
to
4fc9eca
Compare
ff1b41c
to
dd2799b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still kind of wish that the spline knot dragging was a separate tool from the vmin/vmax dragging, but I'm willing to approve this and potentially revisit later if other people end up finding the unified tool annoying to use. The main issue for me is that trying to adjust the location of the first free knot often ends up snapping to adjusting the vmin instead - in one case I actually clicked directly on the knot and it still adjusted the vmin instead:
Screen.Recording.2023-12-07.at.11.17.41.AM.mov
I think this may be in part due to the throttling, such that the user moves their mouse too fast and the location of the knot doesn't get updated enough to keep up with the mouse and stay closer than the bound when dragging. We could probably decrease the throttle a little bit (I tested at 0.02 instead of 0.05 and it seemed maybe a little better). I'm also wondering if a discrepancy in the calculations for distance to bound vs distance to knot might be exacerbating - it looks like the distance to the knot is normalized, but the distance to the bound is not. Is that accurate? Actually, I'll just comment on those lines...stand by...
I just tested this, and it looks like we do need to normalize the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updating the vmin and vmax in Cubeviz works now, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PCHIP interp looks better, thank you!
Description
This draft pull request is to test Tom's implementation for enabling custom stretches. At the moment, the setters for the knots haven't been finalized yet. However, we can currently set the knots' (x, y) values dynamically and observe the updates of both x and y on the image viewer and the histogram.
Fixes #
Change log entry
CHANGES.rst
? If you want to avoid merge conflicts,list the proposed change log here for review and add to
CHANGES.rst
before merge. If no, maintainershould add a
no-changelog-entry-needed
label.Checklist for package maintainer(s)
This checklist is meant to remind the package maintainer(s) who will review this pull request of some common things to look for. This list is not exhaustive.
trivial
label.