()
| 7646 | |
| 7647 | |
| 7648 | def test_adjust_numtick_aspect(): |
| 7649 | fig, ax = plt.subplots() |
| 7650 | ax.yaxis.get_major_locator().set_params(nbins='auto') |
| 7651 | ax.set_xlim(0, 1000) |
| 7652 | ax.set_aspect('equal') |
| 7653 | fig.canvas.draw() |
| 7654 | assert len(ax.yaxis.get_major_locator()()) == 2 |
| 7655 | ax.set_ylim(0, 1000) |
| 7656 | fig.canvas.draw() |
| 7657 | assert len(ax.yaxis.get_major_locator()()) > 2 |
| 7658 | |
| 7659 | |
| 7660 | @mpl.style.context("default") |
nothing calls this directly
no test coverage detected
searching dependent graphs…