2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-26 06:48:04 +02:00
LaTeX-examples/tikz/3d-function-7/3d-function-7.tex
2016-05-16 11:34:20 +02:00

41 lines
968 B
TeX

\documentclass{article}
\usepackage[pdftex,active,tightpage]{preview}
\setlength\PreviewBorder{2mm}
\usepackage{pgfplots}
\pgfplotsset{compat=1.13}
\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={65}{65},
enlargelimits=false,
grid=major,
domain=-5:5,
y domain=-4.99:5,
samples=56, %57 : TeX capacity exceeded, sorry [main memory size=3000000].
% see also http://tex.stackexchange.com/a/7954/5645
xlabel=$x$,
ylabel=$y$,
zlabel={$z$},
colorbar,
colorbar style={
at={(-0.1,0)},
anchor=south west,
height=0.25*\pgfkeysvalueof{/pgfplots/parent axis height},
title={$f(x,y)$}
}
]
\addplot3[surf] {x*y*y*y/(x*x+y*y*y*y)};
\end{axis}
\end{tikzpicture}
\end{preview}
\end{document}