import numpy as np
import matplotlib.pyplot as plt
x = np.arange(1,10)
y = x
fig = plt.figure()
ax1 = fig.add_subplot(111)
ax1.set_title('Scatter Plot')
plt.xlabel('X')
plt.ylabel('Y')
ax1.scatter(x,y,s=50,c =x,marker = 'o',label='xx',linewidth=x)
plt.legend(loc='best')
plt.savefig('scatter.png')