set_xlim#

named_arrays.plt.set_xlim(left=None, right=None, ax=None, **kwargs)#

A thin wrapper around matplotlib.axes.Axes.set_xlim() for named arrays.

Parameters:
  • left (None | float | AbstractScalar) – The left limit of the plot in data coordinates. If None, this limit is unchanged.

  • right (None | float | AbstractScalar) – The right limit of the plot in data coordinates. If None, this limit is unchanged.

  • ax (None | Axes | AbstractScalar) – The matplotlib axes instance on which to apply the label.

Return type:

tuple[AbstractScalar, AbstractScalar]