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

Function test_offset_text_visible

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

Source from the content-addressed store, hash-verified

7999
8000
8001def test_offset_text_visible():
8002 fig, ax = plt.subplots()
8003 ax.plot([1.01e9, 1.02e9, 1.03e9])
8004 ax.yaxis.set_tick_params(label1On=False, label2On=True)
8005 assert ax.yaxis.get_offset_text().get_visible()
8006 ax.yaxis.set_tick_params(label2On=False)
8007 assert not ax.yaxis.get_offset_text().get_visible()
8008
8009
8010def test_large_offset():

Callers

nothing calls this directly

Calls 5

set_tick_paramsMethod · 0.80
get_offset_textMethod · 0.80
subplotsMethod · 0.45
plotMethod · 0.45
get_visibleMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…