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

Method set_label

lib/matplotlib/axis.py:1511–1515  ·  view source on GitHub ↗

Assigning legend labels is not supported. Raises RuntimeError.

(self, s)

Source from the content-addressed store, hash-verified

1509 [tick.gridline for tick in ticks])
1510
1511 def set_label(self, s):
1512 """Assigning legend labels is not supported. Raises RuntimeError."""
1513 raise RuntimeError(
1514 "A legend label cannot be assigned to an Axis. Did you mean to "
1515 "set the axis label via set_label_text()?")
1516
1517 def get_label(self):
1518 """

Callers 15

figureFunction · 0.45
__init__Method · 0.45
add_toolitemMethod · 0.45
set_messageMethod · 0.45
add_toolitemMethod · 0.45
set_messageMethod · 0.45
apply_callbackFunction · 0.45
__init__Method · 0.45
add_collectionMethod · 0.45
add_imageMethod · 0.45
add_lineMethod · 0.45
add_containerMethod · 0.45

Calls

no outgoing calls

Tested by 7

test_colorbar_labelFunction · 0.36
test_keeping_xlabelFunction · 0.36
test_reprFunction · 0.36
test_label_loc_verticalFunction · 0.36
test_label_loc_rcFunction · 0.36