Advertisement
OreganoHauch

NeuralNetwork - Display matrix with colors (BUG)

Dec 4th, 2019
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. import numpy
  2. a = numpy.zeros( [3,2] )
  3. a[0,0] = 1
  4. a[0,1] = 2
  5. a[1,0] = 9
  6. a[2,1] = 12
  7. print(a)
  8.  
  9. import matplotlib.pyplot
  10. %matplotlib inline
  11. matplotlib.pyplot.imshow(a, interpolation="nearest")
  12. <matplotlib.image.AxesImage at 0x108917710>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement