set_aspect#

named_arrays.plt.set_aspect(aspect, ax=None, **kwargs)#

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

Parameters:
  • aspect (float | str | na.AbstractScalar) – The aspect ratio to apply to each axis

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

Return type:

na.AbstractScalar