MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / test_auto_numticks_log

Function test_auto_numticks_log

lib/matplotlib/tests/test_axes.py:7668–7674  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7666
7667@mpl.style.context("default")
7668def 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
7677def test_broken_barh_empty():

Callers

nothing calls this directly

Calls 2

loglogMethod · 0.80
subplotsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…