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

Function _helper_x

lib/matplotlib/tests/test_axes.py:7582–7587  ·  view source on GitHub ↗
(ax)

Source from the content-addressed store, hash-verified

7580@pytest.fixture(params=['x', 'y'])
7581def shared_axis_remover(request):
7582 def _helper_x(ax):
7583 ax2 = ax.twinx()
7584 ax2.remove()
7585 ax.set_xlim(0, 15)
7586 r = ax.xaxis.get_major_locator()()
7587 assert r[-1] > 14
7588
7589 def _helper_y(ax):
7590 ax2 = ax.twiny()

Callers

nothing calls this directly

Calls 4

get_major_locatorMethod · 0.80
twinxMethod · 0.45
removeMethod · 0.45
set_xlimMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…