()
| 670 | |
| 671 | @mpl.style.context('default') |
| 672 | def test_autoscale_log_shared(): |
| 673 | # related to github #7587 |
| 674 | # array starts at zero to trigger _minpos handling |
| 675 | x = np.arange(100, dtype=float) |
| 676 | fig, (ax1, ax2) = plt.subplots(2, 1, sharex=True) |
| 677 | ax1.loglog(x, x) |
| 678 | ax2.semilogx(x, x) |
| 679 | ax1.autoscale(tight=True) |
| 680 | ax2.autoscale(tight=True) |
| 681 | plt.draw() |
| 682 | lims = (x[1], x[-1]) |
| 683 | assert_allclose(ax1.get_xlim(), lims) |
| 684 | assert_allclose(ax1.get_ylim(), lims) |
| 685 | assert_allclose(ax2.get_xlim(), lims) |
| 686 | assert_allclose(ax2.get_ylim(), (x[0], x[-1])) |
| 687 | |
| 688 | |
| 689 | @mpl.style.context('default') |
nothing calls this directly
no test coverage detected
searching dependent graphs…