You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@GuillaumeFavelier we need a public equivalent to mayavi.core.api.Scene for whatever we currently return for create_3d_figure that users can pass around to 3D functions as fig=fig etc. Can you work on this separately? Then we can git grep "PyVista renderer" and know all the places we need to put in a reference that links properly.
I want to open a small PR to refactor _PyVistaRenderer first (mainly moving atrributes into _Figure).
Then we can think about the contract that this fig should fulfill. I believe it works as intended already ('saved figure' passed between the 3d functions) but it could be the time to make things right before making it public.
Activity
larsoner commentedon Feb 11, 2022
@GuillaumeFavelier this is marked for 1.0, can you take a look?
GuillaumeFavelier commentedon Feb 11, 2022
I'll work on it next week 👍
GuillaumeFavelier commentedon Feb 14, 2022
I think the best candidate is the private
_Figure:https://github.com/mne-tools/mne-python/blob/main/mne/viz/backends/_pyvista.py#L46
I want to open a small PR to refactor
_PyVistaRendererfirst (mainly moving atrributes into_Figure).Then we can think about the contract that this
figshould fulfill. I believe it works as intended already ('saved figure' passed between the 3d functions) but it could be the time to make things right before making it public.larsoner commentedon Feb 14, 2022
I think the smallest API as possible is best. So maybe just that:
figto MNE-Python functions, and probably also that.plotterattribute is accessible, and is a PyVista plotter instanceWDYT?
GuillaumeFavelier commentedon Feb 15, 2022
Perfect, that's exactly the purpose of
_Figure.larsoner commentedon Feb 15, 2022
Okay cool, I can make a PR to make this public unless you're working on it @GuillaumeFavelier
GuillaumeFavelier commentedon Feb 15, 2022
You can go for it @larsoner, it's always possible to refactor things around later on