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

Method get_xlabel

lib/matplotlib/axes/_base.py:3716–3721  ·  view source on GitHub ↗

Get the xlabel text string.

(self)

Source from the content-addressed store, hash-verified

3714 # data limits, ticks, tick labels, and formatting
3715
3716 def get_xlabel(self):
3717 """
3718 Get the xlabel text string.
3719 """
3720 label = self.xaxis.label
3721 return label.get_text()
3722
3723 def set_xlabel(self, xlabel, fontdict=None, labelpad=None, *,
3724 loc=None, **kwargs):

Callers 6

align_xlabelsMethod · 0.80
edit_parametersMethod · 0.80
check_ticklabel_visibleFunction · 0.80
test_colorbar_labelFunction · 0.80
test_get_labelsFunction · 0.80

Calls 1

get_textMethod · 0.45

Tested by 4

check_ticklabel_visibleFunction · 0.64
test_colorbar_labelFunction · 0.64
test_get_labelsFunction · 0.64