matplotlib.axes.Axes.update_datalim#
- Axes.update_datalim(xys,updatex=True,updatey=True)[source]#
Extend the
dataLimBbox to include the given points.If no data is set currently, the Bbox will ignore its limits and setthe bound to be the bounds of the xydata (xys). Otherwise, it willcompute the bounds of the union of its current data and the data inxys.
- Parameters:
- xys2D array-like
The points to include in the data limits Bbox. This can be eithera list of (x, y) tuples or a (N, 2) array.
- updatex, updateybool, default: True
Whether to update the x/y limits.
On this page