4

I would like to change the discretization tikz uses in order to get a smoother graph.

 \documentclass[article]{standalone}

 \usepackage{tikz}
 \usepackage{pgfplots}
 \pgfplotsset{compat = newest}  % loads newest improved settings

\begin{document}

\begin{tikzpicture}

\begin{axis}[scale only axis, xlabel = x, xmin = 0, xmax = 4, ylabel = y,  ymax = 40, ymin = 0, ytick pos=left]



\addplot [black, domain=0:3.5] {25*x^0.2};

 \end{axis}
 \end{tikzpicture}
 \end{document}

enter image description here

Torbjørn T.
  • 206,688
Sophie
  • 199

1 Answers1

7

Comment2Answer :)

\addplot [black, domain=0:3.5, samples=100] {25*x^0.2};

The samples option of the \addplot command defines the number of supporting points (German Stützstellen).

enter image description here