title: Connect 3D points with lines/bars
body: <p>I have a series of points in 3D space currently plotted. I would like to connect these together to form a rectangle. The rectangle would need a certain width and height, and somehow should 'wrap' round to the other side of gthe box if it encounters the box boundaries.</p>
  
  <p>My code is below:</p>
  
  <pre><code>import matplotlib.pyplot as pyplot
  import numpy as np
  from mpl_toolkits.mplot3d import Axes3D
  
  x       = [0, 0, 0, 0, 50, 50, 50, 50]
  y       = [50,50,50,50,50,50,50,50]
  z       = [12.5,37.5,62.5,87.5,25,50,75,0]
  
  fig = pyplot.figure()
  ax  = fig.add_subplot(111, projection = '3d')
  
  ax.set_xlim(0,100)
  ax.set_ylim(0,100)
  ax.set_zlim(0,100)
  ax.set_xlabel('X')
  ax.set_ylabel('Y')
  ax.set_zlabel('Z')
  
  #ax.view_init(elev=90, azim=90)
  ax.scatter(x, y, z, zdir='z', s=20, c='g')
  
  pyplot.show()
  </code></pre>
  
  <p>Does anybody have any ideas? Many thanks</p>