()
| 7666 | |
| 7667 | @mpl.style.context("default") |
| 7668 | def test_auto_numticks_log(): |
| 7669 | # Verify that there are not too many ticks with a large log range. |
| 7670 | fig, ax = plt.subplots() |
| 7671 | mpl.rcParams['axes.autolimit_mode'] = 'round_numbers' |
| 7672 | ax.loglog([1e-20, 1e5], [1e-16, 10]) |
| 7673 | assert_array_equal(np.log10(ax.get_xticks()), np.arange(-26, 11, 4)) |
| 7674 | assert_array_equal(np.log10(ax.get_yticks()), np.arange(-20, 5, 3)) |
| 7675 | |
| 7676 | |
| 7677 | def test_broken_barh_empty(): |