title: Plotting 3D image form a data in NumPy-array
body: <p>I have a data file in NumPy array, I would like to view the 3D-image. I am sharing an example, where I can view 2D image of size (100, 100), this is a slice in xy-plane at z = 0.</p>
  
  <pre><code>import numpy as np
  from matplotlib import pyplot as plt
  from mpl_toolkits.mplot3d import Axes3D
  X, Y, Z = np.mgrid[-10:10:100j, -10:10:100j, -10:10:100j]
  T = np.sin(X*Y*Z)/(X*Y*Z)
  T=T[:,:,0]
  im = plt.imshow(T, cmap='hot')
  plt.colorbar(im, orientation='vertical')
  plt.show()
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/uRbz7.png" rel="noreferrer"><img src="https://i.stack.imgur.com/uRbz7.png" alt="Slice at z = 0"></a> </p>
  
  <p>How can I view a 3D image of the data T of shape (100, 100, 100)? </p>