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

Method set_horizontalalignment

lib/matplotlib/text.py:1131–1143  ·  view source on GitHub ↗

Set the horizontal alignment relative to the anchor point. See also :doc:`/gallery/text_labels_and_annotations/text_alignment`. Parameters ---------- align : {'left', 'center', 'right'}

(self, align)

Source from the content-addressed store, hash-verified

1129 self.stale = True
1130
1131 def set_horizontalalignment(self, align):
1132 """
1133 Set the horizontal alignment relative to the anchor point.
1134
1135 See also :doc:`/gallery/text_labels_and_annotations/text_alignment`.
1136
1137 Parameters
1138 ----------
1139 align : {'left', 'center', 'right'}
1140 """
1141 _api.check_in_list(['center', 'right', 'left'], align=align)
1142 self._horizontalalignment = align
1143 self.stale = True
1144
1145 def set_multialignment(self, align):
1146 """

Callers 4

update_positionMethod · 0.80
test_scatterMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_scatterMethod · 0.64