scatter()绘制一些列点
import matplotlib.pyplot as plt
x_values = [1,2,3,4,5]
y_values = [1,4,9,16,25] # y_values = [x ** 1 for x in x_values]
fig,ax = plt.subplots()
ax.scatter(x_values,y_values,s=100)
plt.show()
import matplotlib.pyplot as plt
x_values = [1,2,3,4,5]
y_values = [1,4,9,16,25] # y_values = [x ** 1 for x in x_values]
fig,ax = plt.subplots()
ax.scatter(x_values,y_values,s=100)
plt.show()