#pgfplots 3D graph mesh looks weird
1 messages · Page 1 of 1 (latest)
\begin{tikzpicture}
\begin{axis}[
title=Example using the mesh parameter,
xlabel = Route length in km,
ylabel = {Detour length in km},
zlabel = {Terrence's percent savings},
zmin=0.97,
zmax= 1.03,
ymin=0,
ymax=20,
view = {-100}{40},
title = {Prices for Amber vs Terrence},
colormap/cool,
legend style={at={(1,1)},anchor=north west}],
]
\addplot3[
% surf,
% shader = solid,
mesh,
samples=70,
domain=0:1000,
]
{x/(0.98* (x+ y))};
\addlegendentry{\(\frac{sin(r)}{r}\)}
\end{axis}
\end{tikzpicture}
FruitProgrammer
Compile Error! Click the
reaction for more information.
(You may edit your message to recompile.)
for texit you need pgfplots in preamble