()
| 8429 | |
| 8430 | |
| 8431 | def test_set_position(): |
| 8432 | fig, ax = plt.subplots() |
| 8433 | ax.set_aspect(3.) |
| 8434 | ax.set_position([0.1, 0.1, 0.4, 0.4], which='both') |
| 8435 | assert np.allclose(ax.get_position().width, 0.1) |
| 8436 | ax.set_aspect(2.) |
| 8437 | ax.set_position([0.1, 0.1, 0.4, 0.4], which='original') |
| 8438 | assert np.allclose(ax.get_position().width, 0.15) |
| 8439 | ax.set_aspect(3.) |
| 8440 | ax.set_position([0.1, 0.1, 0.4, 0.4], which='active') |
| 8441 | assert np.allclose(ax.get_position().width, 0.1) |
| 8442 | |
| 8443 | |
| 8444 | def test_spines_properbbox_after_zoom(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…