xxxxxxxxxx
import matplotlib.pyplot as plt
def draw_scatterplot(x_values, y_values):
plt.scatter(x_values, y_values, s=20)
plt.title("Scatter Plot")
plt.xlabel("x values")
plt.ylabel("y values")
plt.show()
xxxxxxxxxx
import matplotlib.pyplot as plt
x_axis = ['value_1', 'value_2', 'value_3', ]
y_axis = ['value_1', 'value_2', 'value_3', ]
plt.scatter(x_axis, y_axis)
plt.title('title name')
plt.xlabel('x_axis name')
plt.ylabel('y_axis name')
plt.show()
xxxxxxxxxx
df.plot(x="col1", y="col2", kind="scatter", title = "Some Title")
plt.show()