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-manhattan-bar-plot/template.tpl
2013-02-07 12:19:11 +01:00

26 lines
572 B
Smarty

\documentclass{article}
\usepackage[pdftex,active,tightpage]{preview}
\setlength\PreviewBorder{2mm}
\usepackage{pgfplots}
\begin{document}
\begin{preview}
\begin{tikzpicture}
\begin{axis}[
view = {120}{35},% important to draw x,y in increasing order
xmin = 0,
ymin = 0,
xmax = [XMAX],
ymax = [YMAX],
zmin = 0,
unbounded coords = jump,
colormap={pos}{color(0cm)=(white); color(6cm)=(blue)}
]
\addplot3[surf,mark=none] coordinates {
[PLACE_PLOT_HERE]
};
\end{axis}
\end{tikzpicture}
\end{preview}
\end{document}