MCPcopy Create free account
hub / github.com/ColdGrub1384/Pyto / set_verticalalignment

Method set_verticalalignment

site-packages/matplotlib/text.py:1163–1177  ·  view source on GitHub ↗

Set the vertical alignment Parameters ---------- align : {'center', 'top', 'bottom', 'baseline', 'center_baseline'}

(self, align)

Source from the content-addressed store, hash-verified

1161 self.stale = True
1162
1163 def set_verticalalignment(self, align):
1164 """
1165 Set the vertical alignment
1166
1167 Parameters
1168 ----------
1169 align : {'center', 'top', 'bottom', 'baseline', 'center_baseline'}
1170 """
1171 legal = ('top', 'bottom', 'center', 'baseline', 'center_baseline')
1172 if align not in legal:
1173 raise ValueError('Vertical alignment must be one of %s' %
1174 str(legal))
1175
1176 self._verticalalignment = align
1177 self.stale = True
1178
1179 def set_text(self, s):
1180 """

Callers 5

__init__Method · 0.95
update_coordsMethod · 0.80
set_label_positionMethod · 0.80
set_label_positionMethod · 0.80
_set_text_positionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected