import numpy as np
from matplotlib import pyplot as plt
data = np.random.rand(5, 100)
fig = plt.figure()
ax = fig.add_subplot(111)
ax.imshow(data, interpolation='nearest')
ax.set_aspect(5)
plt.show()
How to size my imshow?