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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Where can I find the documentation of the tikz 3d library? There seems to be no such section in the manual and google didn't help me in this case.

share|improve this question
And whay you mean with tikz3d library? I was having no problem finding answers about 3D in PGF/TikZ manual. – m0nhawk Oct 9 '12 at 6:33
The library you can load via \usetikzlibrary{3d}. If I search the pdf of the manual I only get things about 3d charts. Could you point me to the correct pages in the manual? – student Oct 9 '12 at 6:40
up vote 12 down vote accepted

I've found several related answers:

So, I've went and look into the sources of TikZ 3D library, here it is (all):

% Copyright 2006 by Till Tantau
% This file may be distributed and/or modified
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
% See the file doc/generic/pgf/licenses/LICENSE for more details.

\ProvidesFileRCS[v\pgfversion] $Header: /cvsroot/pgf/pgf/generic/pgf/frontendlayer/tikz/libraries/tikzlibrary3d.code.tex,v 1.1 2008/01/09 17:57:15 tantau Exp $

% New coordinate systems:
\tikzdeclarecoordinatesystem{xyz cylindrical}

\tikzdeclarecoordinatesystem{xyz spherical}

\pgfset{/tikz/cs/longitude/.store in=\tikz@cs@angle}
\pgfset{/tikz/cs/latitude/.store in=\tikz@cs@latitude}

% Options for transforming into a plane:
\tikzoption{plane origin}{\def\tikz@plane@origin{\tikz@scan@one@point\pgfutil@firstofone#1}}
\tikzoption{plane x}{\def\tikz@plane@x{\tikz@scan@one@point\pgfutil@firstofone#1}}
\tikzoption{plane y}{\def\tikz@plane@y{\tikz@scan@one@point\pgfutil@firstofone#1}}


\tikzoption{canvas is plane}[]{
\tikzoption{canvas is xy plane at z}{%
\tikzoption{canvas is yx plane at z}[]{%
\tikzoption{canvas is xz plane at y}[]{%
\tikzoption{canvas is zx plane at y}[]{%
\tikzoption{canvas is yz plane at x}[]{%
\tikzoption{canvas is zy plane at x}[]{%

% Transformation code


Looks simple and, not, yet documented. Summarizing, it introduce some new coordinates systems:

  • xyz cylindrical with angle, radius and height as parameters.
  • xyz spherical with angle, latitude and radius as an option introduces longtitude as an angle define.

And a new TikZ option to set, where to draw:

plane origin
plane x
plane y
canvas is plane
canvas is xy plane at z
canvas is yx plane at z
canvas is xz plane at y
canvas is zx plane at y
canvas is yz plane at x
canvas is zy plane at x

That's all.

share|improve this answer

Your Answer


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.