Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to rotate my figure, like here below:

my required orientation

\documentclass{standalone}
\usepackage{tikz}
\usepackage{tikz-3dplot}
\begin{document}
\tdplotsetmaincoords{180}{0}
\begin{tikzpicture}[thick,scale=3,tdplot_main_coords]
\draw[thick,->] (4,0,0) -- (5,0,0) node[anchor=north east]{$x$};
\draw[thick,->] (4,0,0) -- (4,1,0) node[anchor=north west]{$y$};
\draw[thick,->] (4,0,0) -- (4,0,1) node[anchor=south]{$z$};
\end{tikzpicture}
\end{document}

my current orientation

What can I do to rotate z-coordinate?

share|improve this question
2  
I think you can have a look to the answers provided in TikZ: How to draw an isometric drawing in tikz. –  Claudio Fiandrino Oct 14 '12 at 18:40
    
@ClaudioFiandrino Thank you a lot, I set x={(1cm,0cm)}, y={(0cm,-1cm)}, z={(1cm,-1cm)} and it's working. –  cadi2108 Oct 15 '12 at 9:11
2  
better with[x={(1cm,0cm)}, y={(0cm,-1cm)}, z={({sqrt(2)/2},{sqrt(2)/2})} –  rpapa Oct 15 '12 at 16:32

1 Answer 1

up vote 2 down vote accepted

How about this:

Code

\documentclass[tikz,border=2mm]{standalone}
\begin{document}
\begin{tikzpicture}
[   thick,
    scale=3,
    x={(0:1cm)},
    y={(270:1cm)},
    z={(315:1cm)}
]
\draw[thick,->] (4,0,0) -- (5,0,0) node[right]{$x$};
\draw[thick,->] (4,0,0) -- (4,1,0) node[below]{$y$};
\draw[thick,->] (4,0,0) -- (4,0,1) node[below right]{$z$};
\end{tikzpicture}
\end{document}

Output

enter image description here

share|improve this answer
    
Thank you a lot :) –  cadi2108 Feb 11 '13 at 2:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.