(kwargs, error, message)
| 1216 | "invalid value for extendfrac"), |
| 1217 | ]) |
| 1218 | def test_colorbar_errors(kwargs, error, message): |
| 1219 | fig, ax = plt.subplots() |
| 1220 | im = ax.imshow([[0, 1], [2, 3]]) |
| 1221 | if kwargs.get('cax', None) is True: |
| 1222 | kwargs['cax'] = ax.inset_axes([0, 1.05, 1, 0.05]) |
| 1223 | with pytest.raises(error, match=message): |
| 1224 | fig.colorbar(im, **kwargs) |
| 1225 | |
| 1226 | |
| 1227 | def test_colorbar_axes_parameters(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…