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

Function test_mismatched_ticklabels

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

Source from the content-addressed store, hash-verified

7013
7014
7015def test_mismatched_ticklabels():
7016 fig, ax = plt.subplots()
7017 ax.plot(np.arange(10))
7018 ax.xaxis.set_ticks([1.5, 2.5])
7019 with pytest.raises(ValueError):
7020 ax.xaxis.set_ticklabels(['a', 'b', 'c'])
7021
7022
7023def test_empty_ticks_fixed_loc():

Callers

nothing calls this directly

Calls 4

subplotsMethod · 0.45
plotMethod · 0.45
set_ticksMethod · 0.45
set_ticklabelsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…