matplot 3d. How do i change the position of the axis?

This is what my graph looks like so far:

I want to move the z axis from the back right to the front left. How do i do

Here is the relevant section of my code:

def make_plot(xaxis):

    fig = plt.figure()
    ax = Axes3D(fig)

    ax.set_xlim3d(xaxis[0], xaxis[-1])
    ax.set_ylim3d(0, timelength)
    ax.set_zlim3d(0, 1)

    poly = PolyCollection(verts, facecolors='w')

    ax.add_collection3d(poly, zs=zs, zdir='y')



View this message in context:
Sent from the matplotlib - users mailing list archive at