Replacement remove method for a colorbar's axes, so that the colorbar is properly removed. Note we define this at the module level to preserve pickling. A lambda or local def within the Colorbar.__init__ method will not work.
(ax, cbar)
| 196 | |
| 197 | |
| 198 | def _remove_cbar_axes(ax, cbar): |
| 199 | """ |
| 200 | Replacement remove method for a colorbar's axes, so that the colorbar is |
| 201 | properly removed. |
| 202 | |
| 203 | Note we define this at the module level to preserve pickling. A lambda or |
| 204 | local def within the Colorbar.__init__ method will not work. |
| 205 | """ |
| 206 | cbar.remove() |
| 207 | |
| 208 | |
| 209 | @_docstring.interpd |
nothing calls this directly
no test coverage detected
searching dependent graphs…