Run the random data generator and plot the scatter

Run the random data generator and plot the scatter#

%run ../scripts/create_random_data
from random import randint
c, T = create_random_set(randint(5,20))
print('\n'.join('{0:.3f} {1:.3f}'.format(*k) for k in zip(c,T)))
1.654 100.295
4.953 105.687
7.329 107.143
7.513 101.618
13.199 105.556
13.529 96.501
24.309 101.788
24.689 101.664
26.894 94.816
29.810 92.198
29.930 97.012
31.936 99.988
39.401 98.685
41.762 92.626
45.994 94.430
46.184 96.371
46.680 87.979
47.507 90.996
48.636 90.286
54.839 94.155
import matplotlib.pyplot as plt
%matplotlib inline
plt.plot(c,T,'o',markersize=10)
plt.xlabel('c',fontsize=14)
plt.ylabel('T',fontsize=14)
Text(0, 0.5, 'T')
../_images/82c43e728f3b641ba526027ae659e1c139dde6dfff0a1216417fcad9b3ec3b7f.png