Problem with 3D axis

View: New views
2 Messages — Rating Filter:   Alert me  

Problem with 3D axis

by Rafaelmx :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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}

The idea of the [y={(0,0,1)},z={(0,1,0)}] part was to "interchange" the
default y with the default z-axis. However, the blue and the brown lines
both point to the same direction. I was expecting the brown line to go
up, i.e. in the direction of the default y-axis. This was with a CVS
build from http://www.texample.net/tikz/builds/. File list is as
follows. Thanks in advance.

Rafael

 *File List*
 article.cls    2005/09/16 v1.4f Standard LaTeX document class
  size10.clo    2005/09/16 v1.4f Standard LaTeX file (size option)
    tikz.sty    2009/03/22 v2.00-cvs (rcs-revision 1.62)
     pgf.sty    2008/01/15 v2.00-cvs (rcs-revision 1.12)
  pgfrcs.sty    2008/05/19 v2.00-cvs (rcs-revision 1.22)
everyshi.sty    2001/05/15 v3.00 EveryShipout Package (MS)
  pgfrcs.code.tex
 pgfcore.sty    2008/01/15 v2.00-cvs (rcs-revision 1.6)
graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
  keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
graphics.sty    2001/07/07 v1.0n Standard LaTeX Graphics (DPC,SPQR)
    trig.sty    1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg    2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
  pdftex.def    2002/06/19 v0.03k graphics/color for pdftex
  pgfsys.sty    2009/03/20 v2.00-cvs (rcs-revision 1.34)
  pgfsys.code.tex
pgfsyssoftpath.code.tex    2008/07/18  (rcs-revision 1.7)
pgfsysprotocol.code.tex    2006/10/16  (rcs-revision 1.4)
  xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)
   color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive
 pgfcore.code.tex
pgfcomp-version-0-65.sty    2007/07/03 v2.00-cvs (rcs-revision 1.7)
pgfcomp-version-1-18.sty    2007/07/23 v2.00-cvs (rcs-revision 1.1)
  pgffor.sty    2008/08/31 v2.00-cvs (rcs-revision 1.15)
  pgffor.code.tex
    tikz.code.tex
 ***********


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

Re: Problem with 3D axis

by Alain Matthes-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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