plopp.xyplot#

plopp.xyplot(x, y, aspect=None, autoscale=True, errorbars=True, figsize=None, grid=False, legend=True, logx=None, logy=None, norm=None, scale=None, title=None, vmax=None, vmin=None, xlabel=None, xmax=None, xmin=None, ylabel=None, ymax=None, ymin=None, **kwargs)[source]#

Make a one-dimensional plot of one variable y as a function of another x.

Added in version 23.10.0.

Parameters:
  • x (Variable | ndarray | list | Node) – The variable to use as the coordinates for the horizontal axis. Must be one-dimensional.

  • y (Variable | ndarray | list | Node) – The variable to use as the data for the vertical axis. Must be one-dimensional.

  • aspect (Literal['auto', 'equal', None], default: None) – Aspect ratio for the axes.

  • autoscale (bool, default: True) – Automatically scale the axes on updates if True.

  • errorbars (bool, default: True) – Show errorbars in 1d plots if True.

  • figsize (tuple[float, float] | None, default: None) – The width and height of the figure, in inches.

  • grid (bool, default: False) – Show grid if True.

  • legend (bool | tuple[float, float], default: True) – Show legend if True. If legend is a tuple, it should contain the (x, y) coordinates of the legend’s anchor point in axes coordinates.

  • logx (bool | None, default: None) – If True, use logarithmic scale for x-axis.

  • logy (bool | None, default: None) – If True, use logarithmic scale for y-axis.

  • norm (Literal['linear', 'log', None], default: None) – Set to 'log' for a logarithmic y-axis. Legacy, prefer logy instead.

  • scale (dict[str, str] | None, default: None) – Change axis scaling between log and linear. For example, specify scale={'time': 'log'} if you want log-scale for the time dimension. Legacy, prefer logx instead.

  • title (str | None, default: None) – The figure title.

  • vmax (Variable | float | None, default: None) – Upper limit for data to be displayed (y-axis). Legacy, prefer ymax instead.

  • vmin (Variable | float | None, default: None) – Lower limit for data to be displayed (y-axis). Legacy, prefer ymin instead.

  • xlabel (str | None, default: None) – Label for x-axis.

  • xmax (Variable | float | None, default: None) – Upper limit for x-axis.

  • xmin (Variable | float | None, default: None) – Lower limit for x-axis.

  • ylabel (str | None, default: None) – Label for y-axis.

  • ymax (Variable | float | None, default: None) – Upper limit for y-axis.

  • ymin (Variable | float | None, default: None) – Lower limit for y-axis.

  • **kwargs – All other kwargs are forwarded the underlying plotting library.

Return type:

FigureLike