Guest User

Untitled

a guest
Dec 6th, 2019
98
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. plt.figure(3)
  2. brs = np.array(brs)
  3. sudari, brzine = [], []
  4. for i in range(min(brs),max(brs)):
  5. indeksi = np.where(brs==i)[0]
  6. print(indeksi)
  7. if(len(indeksi)>0):
  8.  
  9. suma = 0
  10. try:
  11. for j in range(len(indeksi)):
  12. suma = suma + srv[int(indeksi[i])]
  13. brzine.append(suma/len(indeksi))
  14. sudari.append(i)
  15. except:
  16. suma = 0
  17.  
  18.  
  19. plt.scatter(sudari,brzine)
  20. plt.show()
RAW Paste Data