2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-24 05:48:05 +02:00
LaTeX-examples/tikz/3d-helix/3d-helix.tex

37 lines
830 B
TeX
Raw Permalink Normal View History

2012-09-24 13:07:38 +02:00
\documentclass{article}
\usepackage[pdftex,active,tightpage]{preview}
\setlength\PreviewBorder{2mm}
\usepackage{pgfplots}
\begin{document}
\begin{preview}
\pgfplotsset{
colormap={whitered}{
color(0cm)=(white);
color(1cm)=(orange!75!red)
}
}
\begin{tikzpicture}
\begin{axis}[
colormap name=whitered,
width=15cm,
view={335}{50},
enlargelimits=false,
grid=major,
domain=-2:2,
y domain=-2:2,
samples=40, %60 : TeX capacity exceeded, sorry [main memory size=3000000].
% see also http://tex.stackexchange.com/a/7954/5645
xlabel=$x$,
ylabel=$y$,
zlabel={$z$}
]
\addplot3+[domain=0:2*pi,samples y=0]
({sin(deg(x))},
{cos(deg(x))},
{x});
\end{axis}
2012-09-24 13:07:38 +02:00
\end{tikzpicture}
\end{preview}
\end{document}