import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
n = 800
# m = 50
t = np.random.random(size=n) * 2 * np.pi -np.pi
x1 = np.cos(t)
x2 = np.sin(t)
for i in range(n):
len = np.sqrt(np.random.random())
x1[i] = x1[i] * len
x2[i] = x2[i] * len
# s = np.random.random(size=m) * 2 * np.pi -np.pi
# x3 = np.cos(s)
# x4 = np.sin(s)
# for j in range(m):
# len = np.sqrt(np.random.random())
# x3[j] = x3[j] * len +2
# x4[j] = x4[j] * len +2
plt.figure(figsize=(10,10))
plt.scatter(x1,x2,marker='*',color='r')
# plt.scatter(x3,x4,marker='+',color='b')
# _t = np.arange(0,7,0.1)
# _x = np.cos(_t)
# _y = np.sin(_t)
# plt.plot(_x,_y,'g-')
plt.xlim(-1.1,1.1)
plt.ylim(-1.1,1.1)
plt.xlabel('x')
plt.ylabel('y')
plt.title('Random Scatter')
# plt.grid(True)
plt.savefig('imag.png')
plt.show()