#pgfplots 3D graph mesh looks weird

1 messages · Page 1 of 1 (latest)

fresh epochBOT
#

FruitProgrammer
Compile Error! Click the errors reaction for more information.
(You may edit your message to recompile.)

sage flicker
#
\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}
fresh epochBOT
#

FruitProgrammer
Compile Error! Click the errors reaction for more information.
(You may edit your message to recompile.)

sage flicker
#

ok i messed something up

#

imma repost

vague iris
#

for texit you need pgfplots in preamble

sage flicker
#

sorrry lol

#

oh ok