Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #104 +/- ##
==========================================
- Coverage 60.53% 60.46% -0.08%
==========================================
Files 24 24
Lines 821 817 -4
==========================================
- Hits 497 494 -3
+ Misses 324 323 -1 ☔ View full report in Codecov by Sentry. |
germa89
left a comment
There was a problem hiding this comment.
I have some questions regarding this.
If self._object_to_actors_map is a general mapper for all the objects you plot, this object won't avoid to replot the legend with each interaction (mouse movement).
You should add another internal variable (a list?, a set?), where you will store the labels already plotted. then when you go into the if in line 318, the next thing is to check if that label has been already plotted by checking if it is stored in the mentioned internal variable. If it is not, plot; otherwise, continue.
I hope I'm reading your code and approach well!
I agree with you, I already have a list with the plotted labels, the one I delete. I tried the approach you propose by having a dict with the main actor as key, and with the label actor as value, so I can know if the current actor already has a label or not. But it doesn't seem to be working for some reason. It looks like it's saving a copy in the dict instead of a reference to the original object, so I can't delete the label afterwards. Before sinking more time in this, I think the current implementation works fine despite this small inefficiency. Since we are always replotting only one label at a time, this issue won't scale with more actors, so it should be fine. What do you think? |
I wasn't aware that Safari couldn't visualize Webm, I converted the video to MP4. video.mp4 |
That's interesting.
I agree with your reasoning. Yes. Do not waste more time in that then.
Thank you for taking the time! |


This addresses comments from @germa89 in #98
Hovering should be smoother now:
video.webm