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
picking throws away the event callbacks (because we can not in general pickle functions). I suspect the restore method just needs to be smart enough to also restore those.
@vikranth94 No, I do not believe so, would you be interested it taking a look at how to restore the mouse events?
Another route is to instead of saving a pickle, write a function that generates the figure you want and re-call it with your data to restore the figure.
I looked a bit into this and this is actually quite annoying to fix, basically because when the Axes3D is unpickled its parent figure does not have a manager and a canvas set yet (indeed, they are set later in the unpickling process depending on the current backend...), so we can't just have Axes3D.__setstate__ recreate the callbacks...
Activity
jklymak commentedon Mar 19, 2018
Pickling throws out lots of stuff - it can only do so much....
WeatherGod commentedon Mar 19, 2018
tacaswell commentedon Mar 19, 2018
picking throws away the event callbacks (because we can not in general pickle functions). I suspect the restore method just needs to be smart enough to also restore those.
vikranthjv commentedon Aug 5, 2019
Is there a solution to this issue? Can I save and restore interactive 3d plots in a different format other than pickle?
tacaswell commentedon Aug 5, 2019
@vikranth94 No, I do not believe so, would you be interested it taking a look at how to restore the mouse events?
Another route is to instead of saving a pickle, write a function that generates the figure you want and re-call it with your data to restore the figure.
anntzer commentedon Nov 17, 2019
I looked a bit into this and this is actually quite annoying to fix, basically because when the Axes3D is unpickled its parent figure does not have a manager and a canvas set yet (indeed, they are set later in the unpickling process depending on the current backend...), so we can't just have
Axes3D.__setstate__recreate the callbacks...