I am using pgfplots to make a plot, here is a MWE from the manual:
Code: Select all
\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage[ansinew]{inputenc}
\usepackage{amsmath}
\usepackage{amsthm,amssymb}
\usepackage{pgfplots}
\usepgfplotslibrary{colormaps,external}
\tikzexternalize[shell escape=-enable-write18] %needed for the MiKTeX compiler
\begin{document}
\begin{tikzpicture}
\begin{axis}[
grid=major,
colormap/blackwhite
]
\addplot3[surf,samples=30,domain=0:1]{5*x*sin(2*deg(x))*y};
\end{axis}
\end{tikzpicture}
\end{document}
Best,
Niles.