[Bug]: Error when removing colorbar in constrained layout #20978
Labels
status: confirmed bug
topic: color/colorbar
topic: geometry manager
LayoutEngine, Constrained layout, Tight layout
Milestone
Bug summary
When calling
remove()
on a colorbar that belongs to a constrained layout, subsequentplt.show()
call produces a traceback, without showing anything in the plot.The scenario worked in version 3.3.4, the error appeared first in 3.4.0.
Code for reproduction
Actual outcome
Expected outcome
Plot window with the image, without colorbar.
Operating system
Windows 10
Matplotlib Version
3.4.3
Matplotlib Backend
Qt5Agg
Python version
3.8.3
Jupyter version
No response
Other libraries
No response
Installation
pip
Conda channel
No response
The text was updated successfully, but these errors were encountered: