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

Function test_secondary_repr

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

Source from the content-addressed store, hash-verified

8639
8640
8641def test_secondary_repr():
8642 fig, ax = plt.subplots()
8643 secax = ax.secondary_xaxis("top")
8644 assert repr(secax) == '<SecondaryAxis: >'
8645
8646
8647@image_comparison(['axis_options.png'], remove_text=True, style='mpl20')

Callers

nothing calls this directly

Calls 2

secondary_xaxisMethod · 0.80
subplotsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…