7/21/2020 Untitled1.
ipynb - Colaboratory
import numpy as np
a1 = np.random.rand(3,4)
a1
array([[0.30217636, 0.81674362, 0.02884305, 0.02416511],
[0.12276458, 0.25272802, 0.55811503, 0.39734191],
[0.38982362, 0.98588722, 0.01701724, 0.69055472]])
import matplotlib.pyplot as plt
plt.plot([1,2,3,4,5,6,7])
[<matplotlib.lines.Line2D at 0x7ff45177c0b8>]
plt.ylabel('My Values')
Text(0, 0.5, 'My Values')
plt.plot([1,2,3,4,5,6,7])
plt.ylabel("My numbers")
plt.show()
https://colab.research.google.com/drive/1VVZJ1R_NIWGqu1mmeRBb31c2isnstHWa#printMode=true 1/3
7/21/2020 Untitled1.ipynb - Colaboratory
x = [21,22,23,4,5,6,7,11,36,37,100,50,49,1,0,31,32]
num_bins = 10
plt.hist(x,num_bins,facecolor='blue')
plt.show()
https://colab.research.google.com/drive/1VVZJ1R_NIWGqu1mmeRBb31c2isnstHWa#printMode=true 2/3
7/21/2020 Untitled1.ipynb - Colaboratory
https://colab.research.google.com/drive/1VVZJ1R_NIWGqu1mmeRBb31c2isnstHWa#printMode=true 3/3