| 7629 | |
| 7630 | |
| 7631 | def test_shared_axes_autoscale(): |
| 7632 | l = np.arange(-80, 90, 40) |
| 7633 | t = np.random.random_sample((l.size, l.size)) |
| 7634 | |
| 7635 | fig, (ax1, ax2) = plt.subplots(2, 1, sharex=True, sharey=True) |
| 7636 | |
| 7637 | ax1.set_xlim(-1000, 1000) |
| 7638 | ax1.set_ylim(-1000, 1000) |
| 7639 | ax1.contour(l, l, t) |
| 7640 | |
| 7641 | ax2.contour(l, l, t) |
| 7642 | assert not ax1.get_autoscalex_on() and not ax2.get_autoscalex_on() |
| 7643 | assert not ax1.get_autoscaley_on() and not ax2.get_autoscaley_on() |
| 7644 | assert ax1.get_xlim() == ax2.get_xlim() == (-1000, 1000) |
| 7645 | assert ax1.get_ylim() == ax2.get_ylim() == (-1000, 1000) |
| 7646 | |
| 7647 | |
| 7648 | def test_adjust_numtick_aspect(): |