Попробуйте что-нибудь вроде
# Import matplotlib module as plt
import matplotlib.pyplot as plt
import math
x = [3,7,1,9,5,3,5,8,math.sqrt(3)/2]
y = [4,7,8,2,3,4,5,1,1/2]
# Plot scatter Plot
for i in range(len(x)):
if (round(x[i]**2+y[i]**2,2)) == 1: # equation of unit circle is x^2+y^2=1
plt.scatter(x[i],y[i], color ='g',marker ='.')
else:
plt.scatter(x[i],y[i], color ='r',marker ='*')
plt.xlabel('x')
plt.ylabel('y')
plt.xlim([0,10])
plt.ylim([0,10])
plt.title('Scatter Plot')
plt.legend()
plt.show()
