MCPcopy
hub / github.com/matplotlib/matplotlib / set_verticalalignment

Method set_verticalalignment

lib/matplotlib/text.py:1421–1435  ·  view source on GitHub ↗

Set the vertical alignment relative to the anchor point. See also :doc:`/gallery/text_labels_and_annotations/text_alignment`. Parameters ---------- align : {'baseline', 'bottom', 'center', 'center_baseline', 'top'}

(self, align)

Source from the content-addressed store, hash-verified

1419 self.stale = True
1420
1421 def set_verticalalignment(self, align):
1422 """
1423 Set the vertical alignment relative to the anchor point.
1424
1425 See also :doc:`/gallery/text_labels_and_annotations/text_alignment`.
1426
1427 Parameters
1428 ----------
1429 align : {'baseline', 'bottom', 'center', 'center_baseline', 'top'}
1430 """
1431 _api.check_in_list(
1432 ['top', 'bottom', 'center', 'baseline', 'center_baseline'],
1433 align=align)
1434 self._verticalalignment = align
1435 self.stale = True
1436
1437 def set_text(self, s):
1438 r"""

Callers 7

do_constrained_layoutFunction · 0.80
set_label_positionMethod · 0.80
set_ticks_positionMethod · 0.80
set_label_positionMethod · 0.80
update_positionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected