Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132928 views
License: OTHER
1
\documentclass{article}
2
\usepackage[pdftex,active,tightpage]{preview}
3
\setlength\PreviewBorder{2mm}
4
\usepackage{pgfplots}
5
\usepgfplotslibrary{patchplots}
6
7
\begin{document}
8
\begin{preview}
9
\pgfplotsset{
10
colormap={whitered}{
11
color(0cm)=(white);
12
color(1cm)=(orange!75!red)
13
}
14
}
15
\begin{tikzpicture}
16
\begin{axis}[
17
colormap name=whitered,
18
width=15cm,
19
view={10}{15},
20
enlargelimits=false,
21
grid=major,
22
domain=1.5:6,
23
y domain=0:10^9,
24
ymode=log,
25
samples=46, %57 : TeX capacity exceeded, sorry [main memory size=3000000].
26
% see also http://tex.stackexchange.com/a/7954/5645
27
xlabel=$V_{dd}$ in V,
28
ylabel=$f$ in Hz,
29
zlabel=$P_v$ in mW,
30
%colorbar,
31
%colorbar style={
32
% at={(-0.1,0)},
33
% anchor=south west,
34
% height=0.25*\pgfkeysvalueof{/pgfplots/parent axis height},
35
% title={$f(x,y)$}
36
%}
37
]
38
%\addplot3[patch,patch type=bilinear,mesh,black] {0};
39
\addplot3[surf,opacity=0.9] {x*x*y};
40
\end{axis}
41
\end{tikzpicture}
42
\end{preview}
43
\end{document}
44
45