mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-29 07:47:57 +02:00
added 3 more examples
This commit is contained in:
parent
229a59babc
commit
5259753e8c
7 changed files with 11421 additions and 0 deletions
40
tikz/3d-function-9/3d-function-9.tex
Normal file
40
tikz/3d-function-9/3d-function-9.tex
Normal file
|
@ -0,0 +1,40 @@
|
|||
\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={60}{55},
|
||||
enlargelimits=false,
|
||||
grid=major,
|
||||
domain=-2:2,
|
||||
y domain=-5:5,
|
||||
samples=50, %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] {sin((x*x)r)*y};
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
||||
\end{preview}
|
||||
\end{document}
|
Loading…
Add table
Add a link
Reference in a new issue