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
yas a function of anotherx.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 ifTrue.errorbars (
bool, default:True) – Show errorbars in 1d plots ifTrue.figsize (
tuple[float,float] |None, default:None) – The width and height of the figure, in inches.grid (
bool, default:False) – Show grid ifTrue.legend (
bool|tuple[float,float], default:True) – Show legend ifTrue. Iflegendis a tuple, it should contain the(x, y)coordinates of the legend’s anchor point in axes coordinates.logx (
bool|None, default:None) – IfTrue, use logarithmic scale for x-axis.logy (
bool|None, default:None) – IfTrue, use logarithmic scale for y-axis.norm (
Literal['linear','log',None], default:None) – Set to'log'for a logarithmic y-axis. Legacy, preferlogyinstead.scale (
dict[str,str] |None, default:None) – Change axis scaling betweenlogandlinear. For example, specifyscale={'time': 'log'}if you want log-scale for thetimedimension. Legacy, preferlogxinstead.vmax (
Variable|float|None, default:None) – Upper limit for data to be displayed (y-axis). Legacy, preferymaxinstead.vmin (
Variable|float|None, default:None) – Lower limit for data to be displayed (y-axis). Legacy, preferymininstead.xmax (
Variable|float|None, default:None) – Upper limit for x-axis.xmin (
Variable|float|None, default:None) – Lower limit for x-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