()
| 8566 | |
| 8567 | |
| 8568 | def test_secondary_fail(): |
| 8569 | fig, ax = plt.subplots() |
| 8570 | ax.plot(np.arange(2, 11), np.arange(2, 11)) |
| 8571 | with pytest.raises(ValueError): |
| 8572 | ax.secondary_xaxis(0.2, functions=(lambda x: 1 / x)) |
| 8573 | with pytest.raises(ValueError): |
| 8574 | ax.secondary_xaxis('right') |
| 8575 | with pytest.raises(ValueError): |
| 8576 | ax.secondary_yaxis('bottom') |
| 8577 | with pytest.raises(TypeError): |
| 8578 | ax.secondary_xaxis(0.2, transform='error') |
| 8579 | |
| 8580 | |
| 8581 | def test_secondary_resize(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…