-
Notifications
You must be signed in to change notification settings - Fork 66
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 annotations on graph #114
Comments
Hi Noel, maybe check out our fork? It implements a click-and-drag style scoring window. This is hypnogram, not annotations as you requested, but maybe close enough. |
Thanks @TomBugnon! I'll check it out right now. |
btw, I don't think it's specified, but I think you need to use python 3.9 and not 3.10 |
Thanks @TomBugnon. I'm using Python 3.8 with your develop branch at 31b14b6. Have I got the configuration right? What do I click and drag on here? I tried clicking and dragging on all the graph panels. My data's a little weird, not in uV, fs=72... I'll dig into the code to see if I can find the click event
|
It works for us on the develop branch at github/TomBugnon/visbrain... If you debug you can check if you enter this block when clicking and dragging on the signal, and hit this function with the correct value for xlim_scor. The red vertical bars should be redrawn when you click and drag |
Found the problem. Wrong version installed in my venv. 🤦♂️ click and drag works. Now I'll work on:
Thanks! |
bug: Start (seconds) and End (seconds) in Annotations tab show the same value (the end position?). line 1341 in visuals.py: self._fcn_annotate_add('', (cursor, cursor), title) @TomBugnon thank you for this drag-click version, very handy to use. how to fix this bug? |
solved the annotation problem for mouse release:edit on_mouse_release(event) in visuals.py:' Quit mouse-scoring mode if no window was drawn/we clickedAdd annotation for the dragged window'
' |
Hi @noelbk can you keep me posted regarding the features you're adding? Not sure I understand what they mean but they could be useful for us as well |
Hi and thanks for visbrain! We're using it to mark events on our long sleep signals: 6 channels, 70 sps, about 8 hours durarion. We'd like to visually mark regions and validate them from different sources like human experts or algorithms.
I'd like to be able to mark and drag annotations on the signal graph. I'm looking at adding this feature myself, and just wanted to check if anyone else is interested in it, or has already implemented something. Any suggestions?
The text was updated successfully, but these errors were encountered: