MCPcopy
hub / github.com/matplotlib/matplotlib / set_position

Method set_position

lib/matplotlib/text.py:1356–1365  ·  view source on GitHub ↗

Set the (*x*, *y*) position of the text. Parameters ---------- xy : (float, float)

(self, xy)

Source from the content-addressed store, hash-verified

1354 self.stale = True
1355
1356 def set_position(self, xy):
1357 """
1358 Set the (*x*, *y*) position of the text.
1359
1360 Parameters
1361 ----------
1362 xy : (float, float)
1363 """
1364 self.set_x(xy[0])
1365 self.set_y(xy[1])
1366
1367 def set_x(self, x):
1368 """

Callers 13

xyannMethod · 0.45
do_constrained_layoutFunction · 0.45
make_margin_suptitlesFunction · 0.45
set_label_coordsMethod · 0.45
set_offset_positionMethod · 0.45
_set_text_positionMethod · 0.45
_suplabelsMethod · 0.45
_init_layoutMethod · 0.45

Calls 2

set_xMethod · 0.95
set_yMethod · 0.95

Tested by

no test coverage detected