Closed
Description
Problem
In #20481 colorbar.patch
was deprecated, so doing for example (in our code that makes a DraggableColorbar):
cbar.patch.figure.canvas.mpl_connect('button_press_event', on_press)
Now yields:
The patch attribute was deprecated in Matplotlib 3.5 and will be removed two minor releases later.
Suggested Improvement
It would be good to know what other attribute to use instead of cbar.patch
in order to do things like control interaction. It would be nice if the emitted warning and API notes were updated, but at least one or the other would help.