« Return to Thread: Problem with 3D axis

Re: Problem with 3D axis

by Alain Matthes-2 :: Rate this Message:

Reply to Author | View in Thread


Le 26 juin 09 à 00:34, Rafael Villarroel a écrit :

>
> Consider the following document:
>
> \documentclass{article}
> \listfiles
> \usepackage{tikz}
>
> \begin{document}
> \begin{center}
>  \begin{tikzpicture}[y={(0,0,1)},z={(0,1,0)}]
>    \draw[very thick,red] (0,0,0) -- (1,0,0);
>    \draw[very thick,blue] (0,0,0) -- (0,2,0);
>    \draw[very thick,brown] (0,0,0) -- (0,0,1);
>  \end{tikzpicture}
> \end{center}
>
> \end{document}
>

Hi Rafael

Perhaps something like that

\documentclass{article}

\usepackage{tikz}

\begin{document}

\begin{tikzpicture}[scale=1.5,line width=1pt]

\pgfsetxvec{\pgfpoint{-0.5cm}{-0.5cm}}
\pgfsetyvec{\pgfpoint{1cm}{0cm}}
\pgfsetzvec{\pgfpoint{0cm}{1cm}}
   \draw[very thick,red] (0,0,0) -- (1,0,0);
   \draw[very thick,blue] (0,0,0) -- (0,1,0);
   \draw[very thick,brown] (0,0,0) -- (0,0,1);
\end{tikzpicture}
\end{document}

Best Regards

Alain
------------------------------------------------------------------------------
_______________________________________________
pgf-users mailing list
pgf-users@...
https://lists.sourceforge.net/lists/listinfo/pgf-users

 « Return to Thread: Problem with 3D axis