-
Notifications
You must be signed in to change notification settings - Fork 16
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
Plotting wrappers: Body-vector orientation #402
Plotting wrappers: Body-vector orientation #402
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #402 +/- ##
==========================================
+ Coverage 99.80% 99.82% +0.01%
==========================================
Files 15 21 +6
Lines 1048 1162 +114
==========================================
+ Hits 1046 1160 +114
Misses 2 2 ☔ View full report in Codecov by Sentry. |
The |
I believe so, but for each time-point. I'm also not the expert on this 😅 But I believe you'll have one arrow per timepoint (the vector between the two keypoints that are given) that needs to be ploteed. |
@stellaprins I think this function in its current form is not very broadly useful, because it follows the existing example too closely. What Sofía has done in that example is valuable for didactic reasons, but I don't think it's such a common use-case. I could see something like I suggest pausing this for now and coming back to it later, after we've updated the "polar" example (I could take that on, we've neglected it for long enough). As far as plotting wrappers are concerned, I'd say the following have higher priority:
Sorry for not looking at this PR earlier! |
|
Sorry, I could have let you know I was working on this.
@niksirbi Yes, I did not totally realise (the displacement plots look quite similar at first sight), but I noticed it while revisiting this today and updating the examples that I could only use it in one specific case. I just finished updating |
I don't think your effort here is wasted. It could be very useful to re-purpose this function to specifically plot the "forward vector", i.e. the output of this function. This way users would be able to quickly visualise the head/body vector (depending on the chosen left+right keypoints). But I think we need to brainstorm on this, because there are several ways we could approach this. Could be something for this Thursday. |
We decided to close this for now, until we re-think how we want vector plot to look like. May re-visit this later. |
Description
What is this PR
Why is this PR needed?
To conveniently plot the vector between or midpoints between two keypoints (e.g. left_ear and right_ear for head trajectory, see third plot in computes polar coordinates example) with a single line of code.
What does this PR do?
References
#389
How has this PR been tested?
Checked the updated documentation locally.
Added tests that check whether the extracted vector ("quiver") U and V coordinates match the expected U V coordinates.
Is this a breaking change?
No.
Does this PR require an update to the documentation?
computes polar coordinates example) has been updated.
Checklist: