Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132934 views
License: OTHER
1
\documentclass{article}
2
\usepackage[pdftex,active,tightpage]{preview}
3
\setlength\PreviewBorder{2mm}
4
\usepackage{pgfplots}
5
6
\begin{document}
7
\begin{preview}
8
\pgfplotsset{
9
colormap={whitered}{
10
color(0cm)=(white);
11
color(1cm)=(orange!75!red)
12
}
13
}
14
\begin{tikzpicture}
15
\begin{axis}[
16
colormap name=whitered,
17
width=15cm,
18
view={335}{50},
19
enlargelimits=false,
20
grid=major,
21
domain=-2:2,
22
y domain=-2:2,
23
samples=40, %60 : TeX capacity exceeded, sorry [main memory size=3000000].
24
% see also http://tex.stackexchange.com/a/7954/5645
25
xlabel=$x$,
26
ylabel=$y$,
27
zlabel={$z$}
28
]
29
\addplot3+[domain=0:2*pi,samples y=0]
30
({sin(deg(x))},
31
{cos(deg(x))},
32
{x});
33
\end{axis}
34
\end{tikzpicture}
35
\end{preview}
36
\end{document}
37
38