()
| 331 | |
| 332 | |
| 333 | def test_parentless_mappable(): |
| 334 | pc = mpl.collections.PatchCollection([], cmap=plt.get_cmap('viridis'), array=[]) |
| 335 | with pytest.raises(ValueError, match='Unable to determine Axes to steal'): |
| 336 | plt.colorbar(pc) |
| 337 | |
| 338 | |
| 339 | @image_comparison(['colorbar_closed_patch.png'], remove_text=True, |