I have two lists:
x = [5, 5, -5, -5, 10, 10, -10, -10, 15, 15, -15, -15, 20, 20, -20, -20]
y = [-5, 5, 5, -10, -10, 10, 10, -20, -15, 15, 15, -30, -20, 20, 20, -40]
plotting the points:
import matplotlib.pyplot as plt
plt.scatter(x, y)
I get:
but when I want to connect the points, I get:
plt.scatter(x, y, "-")
TypeError: ufunc 'sqrt' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''