Plotting images side by side using matplotlib : <p>I was wondering how I am able to plot images side by side using <code>matplotlib</code> for example something like this:</p>

<p><a href="https://i.stack.imgur.com/dDepR.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/dDepR.jpg" alt="enter image description here"></a></p>

<p>The closest I got is this:</p>

<p><a href="https://i.stack.imgur.com/J3fpW.png" rel="noreferrer"><img src="https://i.stack.imgur.com/J3fpW.png" alt="enter image description here"></a></p>

<p>This was produced by using this code:</p>

<pre><code>f, axarr = plt.subplots(2,2)
axarr[0,0] = plt.imshow(image_datas[0])
axarr[0,1] = plt.imshow(image_datas[1])
axarr[1,0] = plt.imshow(image_datas[2])
axarr[1,1] = plt.imshow(image_datas[3])
</code></pre>

<p>But I can't seem to get the other images to show. I'm thinking that there must be a better way to do this as I would imagine trying to manage the indexes would be a pain. I have looked through the <a href="http://matplotlib.org/examples/pylab_examples/subplots_demo.html#pylab-examples-subplots-demo" rel="noreferrer">documentation</a> although I have a feeling I may be look at the wrong one. Would anyone be able to provide me with an example or point me in the right direction? </p>
