-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
ENH: Traces dock widget #9180
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
ENH: Traces dock widget #9180
Conversation
|
Maybe |
|
It's ready for reviews @larsoner, @agramfort |
|
From a quick test this is my experience / thoughts:
|
|
About Locally, the notebook test was failing so I fixed it in here. I don't know why it was not detected. |
Could you embed the plotter in a group box, and make that group box what's movable? |
Still 1 pixel for me, can you replicate? If so, could you try the margin stuff suggested here: If not, I can work on it, since it might actually be the fault of my Ubuntu theme: https://forum.qt.io/topic/60122/increase-floating-qdockwidget-resize-margin-size |
I know how to do this
But not that. I will make some research 😅
With |
I'd assume that however you're currently making the matplotlib window movable, you "just" need to do that same thing with a new groupbox widget, then make the plotter a child of that group box. Hopefully it's not more complicated than this, but if it is, I apologize :) If it ends up being really complicated maybe it's not worth pursuing. |
Ah this came basically for free with https://doc.qt.io/qt-5/qdockwidget.html#DockWidgetFeature-enum |
|
So add a new GroupBox to that widget, put the plotter in that group box, and maybe it works? |
Haven't tried this out yet, but hopefully one cannot "accidentally" detach the docks? Because that's something I hate :D These multi-window designs are … idk, is anyone even still using that? Not even GIMP comes with that stuff anymore by default! 😅 |
|
From trying it out, I find it works pretty well. You can move/detach/reattach easily. |
This reverts commit 8d836cd.
|
I tried in 8d836cd but it was some sort of frankenstein, it's way too hacky and not stable in my opinion 😅 output.mp4Also, because there is no real central widget but a "fake" one (hidden empty |
|
Those interactions seem okay. Why not make the |
|
Ohhhhh I see. You need a central widget and things go around it. I can live with the brain plots being this central widget :) |
|
In that case we should be good to go here, then? |
|
Ready on my end. Do you want to take care of |
agramfort
left a comment
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.
provided CIs are green
|
Fixed the grip issue |
|
Thanks @GuillaumeFavelier ! |


This PR follows #8997 (comment) and brings support for docked traces:
This is how it looks by default for me on
i3:And the dock widgets can be detached/resized/reattached:
Locally,
Braintesting works but I don't know howmacOSCIs will react 🙏Details