Matplotlib,how to represent array as image?
<p>This is what I have tried so far</p>

<pre><code>import itertools
import numpy as np
import matplotlib.pyplot as plt

with open('base.txt','r') as f:
    vst = map(int, itertools.imap(float, f))

v1=vst[::3]
print type(v1)

a=np.asarray(v1)
print len(a)
a11=a.reshape(50,100)

plt.imshow(a11, cmap='hot')
plt.colorbar()
plt.show()
</code></pre>

<p>I have (50,100) array and each element has numerical value(range 1200-5400).I would like to have image that would represent array.But I got this
<a href="https://i.stack.imgur.com/FHraS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FHraS.png" alt="enter image description here"></a></p>

<p>What should I change to get proper image?</p>