()
| 8627 | |
| 8628 | |
| 8629 | def test_secondary_init_xticks(): |
| 8630 | fig, ax = plt.subplots() |
| 8631 | secax = ax.secondary_xaxis(1, xticks=[0, 1]) |
| 8632 | assert isinstance(secax.xaxis.get_major_locator(), mticker.FixedLocator) |
| 8633 | with pytest.raises(TypeError): |
| 8634 | secax.set_yticks([0, 1]) |
| 8635 | secax = ax.secondary_yaxis(1, yticks=[0, 1]) |
| 8636 | assert isinstance(secax.yaxis.get_major_locator(), mticker.FixedLocator) |
| 8637 | with pytest.raises(TypeError): |
| 8638 | secax.set_xticks([0, 1]) |
| 8639 | |
| 8640 | |
| 8641 | def test_secondary_repr(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…