title: Representing voxels with matplotlib
body: <p>In Python, given a <code>N_1 x N_2 x N_3</code> matrix containing either 0s or 1s, I would be looking for a way to display the data in 3D as a <code>N_1 x N_2 x N_3</code> volume with volumic pixels (voxels) at the location of 1s.</p>
  
  <p>For example, if the coordinates of 1s were <code>[[1, 1, 1], [4, 1, 2], [3, 4, 1]]</code>, the desired output would look like this</p>
  
  <p><a href="https://i.stack.imgur.com/MwR3M.png" rel="noreferrer"><img src="https://i.stack.imgur.com/MwR3M.png" width="400"></a></p>
  
  <p>It seems that the <code>mplot3D</code> module of matplotlib could have the potential to achieve this, but I haven't found any example of this kind of plot. Would anyone be aware of simple solution to tackle this issue?</p>
  
  <p>Thanks a lot in advance for your help.</p>