Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import matplotlib.pyplot as plt
- import numpy as np
- import random
- import matplotlib as mpl
- matrix = []
- for j in range(0,1000): #number of elements in final matrix
- s = 0
- for i in range(0,1000): # summirise 1000 numbers
- s = s + (random.randint(0,10)/10)
- matrix.append(round(s))
- #print(matrix)
- fig = plt.figure()
- plt.hist(matrix)
- plt.title('Simple histogramm')
- plt.grid(True)
- plt.axis([0, 1000, 0 , 300])
- plt.title('OpenStreetMap Point Types')
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement