Verwenden Sie Line2D, um eine Linie in Python zu zeichnen
Ich habe die Daten:
x = [10,24,23,23,3]
y = [12,2,3,4,2]
Ich möchte es mit @ plott
matplotlib.lines.Line2D (xdata, ydata)
Ich benutz
import matplotlib.lines
matplotlib.lines.Line2D(x, y)
Aber wie zeige ich die Linie?