# TiKZTikZ-3dplot package pointer

#### dwsmith

##### Well-known member
I am not sure if you all who use tikz are aware of this but here is what I figured out today.

I am sure those of you who use tikz know that when you do (x,y,z) the z axis is where the x axis usually is in 3D. You could always rename it but then you have to remember to swap coordinates x and z. Additionally, the appearance would be nicer if we could rotate the axis.

[LATEXS]
\tdplotsetmaincoords{72}{120}
\begin{tikzpicture}[line join = round, line cap = round, >=triangle 45, tdplot_main_coords]
[/LATEXS]
This will set the xyz axis in the normal position with a better appearance. This way you don't have to swap the x and z in (x,y,z).

Last edited: