title: Python plot - stacked image slices
body: <p>I have a series of basic 2D images (3 for simplicity for now) and these are related to each other, analogous to frames from a movie:</p>
  <p>Within python how may I stack these slices on top of each other, as in image1-&gt;image2-&gt;image-3? I'm using pylab to display these images. Ideally an isometric view of the stacked frames would be good or a tool allowing me to rotate the view within code/in rendered image.</p>
  <p>Any assistance appreciated. Code and images shown:</p>
  <pre><code>from PIL import Image
  import pylab
    
  fileName = &quot;image1.png&quot;
  im = Image.open(fileName)
  pylab.axis('off')
  pylab.imshow(im)
  pylab.show()
  </code></pre>
  <p><img src="https://i.stack.imgur.com/leKRg.png" alt="Image1.png here" />
  <img src="https://i.stack.imgur.com/qcR0V.png" alt="Image2.png here" />
  <img src="https://i.stack.imgur.com/Xterw.png" alt="Image3.png here" /></p>