plot()
Produce a quick text-based plot.
Usage
plot(
x,
y,
*,
kind="scatter",
)Parameters
x: list[float]-
X-axis values.
y: list[float]-
Y-axis values.
kind: str = "scatter"-
Plot type —
"scatter"or"line".
Returns
str-
A string representation of the plot.
Raises
ValueError-
If
xandyhave different lengths.