shellplot.plot
- shellplot.plot(x, y, fig=None, **kwargs)[source]
Plot x versus y as scatter.
- Parameters
x (array-like) – The horizontal coordinates of the data points. Should be 1d or 2d np.ndarray or pandas series
y (array-like) – The vertical coordinates of the data points. Should be 1d or 2d np.ndarray or pandas series
color (array, optional) – Color of scatter. Needs to be of same dimension as x, y Should be 1-d np.ndarray or pandas series
line (bool, optional, default False) – Whether a line should be plotted using the x, y points. This will use a linear interpolation of the points.
label (str) – The label of the plot for display in the legend
fig (shellplot.figure.Figure, optional, default None) – If provided, plot will be attached to figure. Otherwise, a new figure is created for the plot
return_type (str, optional) – If ‘str’, returns the plot as a string. Otherwise, the plot will be directly printed to stdout.
**kwargs – Additional parameters passed to shellplot.figure (Only used if the fig keyword is None)
- Returns
See notes, dependent on return_type
- Return type
result