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

Method set_data

lib/matplotlib/lines.py:650–669  ·  view source on GitHub ↗

Set the x and y data. Parameters ---------- *args : (2, N) array or two 1D arrays See Also -------- set_xdata set_ydata

(self, *args)

Source from the content-addressed store, hash-verified

648 return bbox
649
650 def set_data(self, *args):
651 """
652 Set the x and y data.
653
654 Parameters
655 ----------
656 *args : (2, N) array or two 1D arrays
657
658 See Also
659 --------
660 set_xdata
661 set_ydata
662 """
663 if len(args) == 1:
664 (x, y), = args
665 else:
666 x, y = args
667
668 self.set_xdata(x)
669 self.set_ydata(y)
670
671 def recache_always(self):
672 self.recache(always=True)

Callers 15

__init__Method · 0.95
_tick_update_positionFunction · 0.45
drawMethod · 0.45
drawMethod · 0.45
imshowMethod · 0.45
meanFunction · 0.45
__init__Method · 0.45
initFunction · 0.45
animateFunction · 0.45
test_stairs_updateFunction · 0.45

Calls 2

set_xdataMethod · 0.95
set_ydataMethod · 0.95

Tested by 13

meanFunction · 0.36
__init__Method · 0.36
initFunction · 0.36
animateFunction · 0.36
test_stairs_updateFunction · 0.36
test_fancyarrow_setdataFunction · 0.36
test_bbox_image_invertedFunction · 0.36
test_axesimage_setdataFunction · 0.36
test_setdata_xyaFunction · 0.36