Facebook
From Obese Crow, 5 Days ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 41
  1. import matplotlib.pyplot as plt
  2. import numpy as np
  3. tablica = []
  4. tablica.append(1)
  5. for i in range(1,16):
  6.     tablica.append(i*2)
  7. print(tablica)
  8. tab = np.array(tablica).reshape(4,4)
  9. print(tab)
  10. tab = tab*4
  11. print(tab)
  12. nowa = np.arange(12).reshape(3,4)
  13. tabelka = [0,1,2]
  14. for i in tabelka:
  15.     for j in range(0,4):
  16.             nowa[2-i][j] = tab[i][j]
  17. print(nowa)
  18. print(nowa.min(axis=1))
  19. nowa = nowa.reshape(4,3)
  20. print(nowa)
  21.