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

Function test_ylabel_ha_with_position

lib/matplotlib/tests/test_axes.py:9252–9257  ·  view source on GitHub ↗
(ha)

Source from the content-addressed store, hash-verified

9250
9251@pytest.mark.parametrize('ha', ['left', 'center', 'right'])
9252def test_ylabel_ha_with_position(ha):
9253 fig = Figure()
9254 ax = fig.subplots()
9255 ax.set_ylabel("test", y=1, ha=ha)
9256 ax.yaxis.set_label_position("right")
9257 assert ax.yaxis.label.get_ha() == ha
9258
9259
9260def test_bar_label_location_vertical():

Callers

nothing calls this directly

Calls 4

FigureClass · 0.90
set_ylabelMethod · 0.80
subplotsMethod · 0.45
set_label_positionMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…