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

Function test_secondary_formatter

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

Source from the content-addressed store, hash-verified

8617
8618
8619def test_secondary_formatter():
8620 fig, ax = plt.subplots()
8621 ax.set_xscale("log")
8622 secax = ax.secondary_xaxis("top")
8623 secax.xaxis.set_major_formatter(mticker.ScalarFormatter())
8624 fig.canvas.draw()
8625 assert isinstance(
8626 secax.xaxis.get_major_formatter(), mticker.ScalarFormatter)
8627
8628
8629def test_secondary_init_xticks():

Callers

nothing calls this directly

Calls 6

set_xscaleMethod · 0.80
secondary_xaxisMethod · 0.80
get_major_formatterMethod · 0.80
subplotsMethod · 0.45
set_major_formatterMethod · 0.45
drawMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…