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

Function test_keeping_xlabel

lib/matplotlib/tests/test_colorbar.py:748–755  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

746
747@image_comparison(['colorbar_keeping_xlabel.png'], style='mpl20')
748def test_keeping_xlabel():
749 # github issue #23398 - xlabels being ignored in colorbar axis
750 arr = np.arange(25).reshape((5, 5))
751 fig, ax = plt.subplots()
752 im = ax.imshow(arr)
753 cbar = plt.colorbar(im)
754 cbar.ax.set_xlabel('Visible Xlabel')
755 cbar.set_label('YLabel')
756
757
758@pytest.mark.parametrize("clim", [(-20000, 20000), (-32768, 0)])

Callers

nothing calls this directly

Calls 5

imshowMethod · 0.80
set_xlabelMethod · 0.80
subplotsMethod · 0.45
colorbarMethod · 0.45
set_labelMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…