The code below produces the following graph. from matplotlib import pyplot as plt from mpl_toolkits.mplot3d import Axes3D plt.rcParams['text.usetex']=True ax=plt.axes(projection="3d") ax.set_xlabel("$x$") ax.set_ylabel("$y$") ax.set_zlabel("$z$") ax.grid(True) ax.xaxis.set_pane_color((1.0, 1.0, 1.0, 0.0)) ax.yaxis.set_pane_color((1.0, 1.0, 1.0, 0.0)) ax.zaxis.set_pane_color((1.0, 1.0, 1.0, 0.0)) ax.set_xticks([]) ax.set_yticks([]) ax.set_zticks([]) ax.view_init(30, 30) plt.show() Which produces How can I move the axis such that it is like the image below. Continue reading...