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
[Bug]: Unable to pickle figure with draggable legend #25300
Comments
|
#25311 fixes it. Thanks for the quick response :) |
|
Update Consider the following example Pickling works when legend is not dragged. After dragging when I try to pickle I get the error |
|
Reposting #25311 (comment): we should move the implementation of BufferRegion from C to Python (essentially making it an opaque type holding a numpy array and x1/x2/y1/y2 coords), which will make it picklable and also may help moving towards #23882. I don't think it's particularly hard to do on the engineering side, just a fair amount of boring work with C extensions... |


Bug summary
I am unable to pickle figure with draggable legend. Same error comes for draggable annotations.
Code for reproduction
Actual outcome
TypeError: cannot pickle 'FigureCanvasQTAgg' objectExpected outcome
Pickling successful
Additional information
No response
Operating system
Windows 10
Matplotlib Version
3.7.0
Matplotlib Backend
No response
Python version
3.10
Jupyter version
No response
Installation
pip
The text was updated successfully, but these errors were encountered: