title: Matplotlib 2D polygon in 3D axes
body: <p>I'm using matplotlib to plot some data as 2D curves in a 3D axes. I use the <code>ax = axes3d.Axes3D()</code> to define my axes and <code>ax.plot(x, y, zs='z')</code> to plot my 2D curves in the 3D space.</p>
  
  <p>Now I want to add something that looks like what is on this page <a href="http://matplotlib.sourceforge.net/examples/mplot3d/polys3d_demo.html" rel="nofollow">http://matplotlib.sourceforge.net/examples/mplot3d/polys3d_demo.html</a>, but I want to enter directly the coordinates of the vertex.  In this example they have a fixed <code>z</code> array and they plot polygons with vertices <code>(x,y)</code>, whereas what I want is <code>z(x)</code> and <code>(x,y)</code> vertices. Does anyone know how to do something like this?</p>
  
  <p>And actually I don't need the collection thing, I just want to plot one big square in an arbitrary direction.</p>
  
  <p>I tried to simply enter the coordinates and use <code>ax.plot()</code>:</p>
  
  <pre><code>verts = np.array([[0,0,0], [0,1,0], [1,1,1], [1,0,1], [0,0,0]])
  ax.plot(verts[:,0], verts[:,1], verts[:,2], zdir='y')
  </code></pre>
  
  <p>and it indeed plots a square, but I can't (or don't know how to) fill the face.</p>