2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-18 19:18:21 +02:00
LaTeX-examples/documents/GeoTopo/figures/3d-function-semicubical-parabola.tex
Martin Thoma 7740f0147f Remove trailing spaces
The commands

find . -type f -name '*.md' -exec sed --in-place 's/[[:space:]]\+$//' {} \+

and

find . -type f -name '*.tex' -exec sed --in-place 's/[[:space:]]\+$//' {} \+

were used to do so.
2015-10-14 14:25:34 +02:00

31 lines
754 B
TeX

\pgfplotsset{
colormap={whitered}{
color(0cm)=(white);
color(1cm)=(orange!75!red)
}
}
\begin{tikzpicture}[scale=0.5]
\begin{axis}[
colormap name=whitered,
width=15cm,
view={155}{45},
enlargelimits=false,
grid=major,
domain=-5:5,
y domain=-5: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] {y*y-x*x*x};
\end{axis}
\end{tikzpicture}