ax.plot([0, 0], [0, 0], [0, 10]) # extend in z direction ax.plot([0, 0], [0, 8], [0, 0]) # extend in y direction ax.plot([0, 9], [0, 0], [0, 0]) # extend in x direction