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

Method get_label

lib/matplotlib/axis.py:1517–1526  ·  view source on GitHub ↗

[*Discouraged*] Return the axis label as a Text instance. .. admonition:: Discouraged This overrides `.Artist.get_label`, which is for legend labels, with a new semantic. It is recommended to use the attribute ``Axis.label`` instead.

(self)

Source from the content-addressed store, hash-verified

1515 "set the axis label via set_label_text()?")
1516
1517 def get_label(self):
1518 """
1519 [*Discouraged*] Return the axis label as a Text instance.
1520
1521 .. admonition:: Discouraged
1522
1523 This overrides `.Artist.get_label`, which is for legend labels, with a new
1524 semantic. It is recommended to use the attribute ``Axis.label`` instead.
1525 """
1526 return self.label
1527
1528 def get_offset_text(self):
1529 """Return the axis offsetText as a Text instance."""

Callers 15

_get_legend_handlesFunction · 0.45
_parse_legend_argsFunction · 0.45
get_figlabelsFunction · 0.45
connection_infoFunction · 0.45
edit_parametersMethod · 0.45
figure_editFunction · 0.45
__repr__Method · 0.45
add_collectionMethod · 0.45
add_imageMethod · 0.45
add_lineMethod · 0.45

Calls

no outgoing calls

Tested by 8

test_gcfFunction · 0.36
test_bar_labelsFunction · 0.36
test_hist_labelsFunction · 0.36
test_figureFunction · 0.36
test_all_nestedMethod · 0.36
test_kwargs_passFunction · 0.36