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

Method set_xdata

lib/matplotlib/lines.py:1301–1318  ·  view source on GitHub ↗

Set the data array for x. Parameters ---------- x : 1D array See Also -------- set_data set_ydata

(self, x)

Source from the content-addressed store, hash-verified

1299 self._markersize = sz
1300
1301 def set_xdata(self, x):
1302 """
1303 Set the data array for x.
1304
1305 Parameters
1306 ----------
1307 x : 1D array
1308
1309 See Also
1310 --------
1311 set_data
1312 set_ydata
1313 """
1314 if not np.iterable(x):
1315 raise RuntimeError('x must be a sequence')
1316 self._xorig = copy.copy(x)
1317 self._invalidx = True
1318 self.stale = True
1319
1320 def set_ydata(self, y):
1321 """

Callers 14

set_dataMethod · 0.95
test_invalid_line_dataFunction · 0.95
update_positionMethod · 0.80
set_valMethod · 0.80
_update_val_from_posMethod · 0.80
set_valMethod · 0.80
onmoveMethod · 0.80
onmoveMethod · 0.80
updateFunction · 0.80
on_mouse_moveMethod · 0.80
on_mouse_moveMethod · 0.80

Calls 1

copyMethod · 0.45

Tested by 2

test_invalid_line_dataFunction · 0.76