forked from jymaalouly/Thesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreateplot.py
30 lines (25 loc) · 953 Bytes
/
createplot.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import math
import random
import matplotlib.pyplot as plt
import os
mypath = os. getcwd()
output = os. getcwd()+"/output1/"
# number of data points
num_data_points = 25
color = ['r','g','b','c','m','y','k']
marker = ['o','x','s','.','*','D']
# draw the plot
for a in range(0,10):
x = [random.gauss(0.5, 0.25) for i in range(num_data_points)]
y = [random.gauss(0.5, 0.25) for i in range(num_data_points)]
for b in range(1,800):
if (b % 50) == 0 :
for c in range(len(marker)):
for d in range(len(color)):
plt.figure(figsize=(6,6))
plt.scatter(x, y, s = b, marker = marker[c], c = color[d])
plt.axis([0.0, 1.0, 0.0, 1.0])
plt.tight_layout()
plt.savefig(output + str(a) + '-' + str(b) + '-' + str(c) + '-' + str(d) + '.png', dpi=21.4)
#plt.show()
plt.close('all')