Scatter Plot
import matplotlib.pyplot as plt
x1 = [1,1.5,2,2.5,3,3.5,3.6]
y1 = [6,7,8,8.2,8.5,9,9.5]
plt.scatter(x1,y1, label='High income',color='g')
marker= "*", s=60)
plt.show()
plt.xlabel(‘X-axis’)
plt.ylabel(‘Y-axis’)
plt.title(‘Scatter plot’)
plt.legend()
x2=[8,8.5,9,9.5,10,10.5,11]
y2=[2,2.5,2.7,3,3.5,4,5]
plt.scatter(x2,y2,label='Low income',color='r')