%3F.png)
\begin{figure}[H]
\centering
\begin{tikzpicture}
\begin{axis}[xmax=8,ymax=3,
smooth,
restrict y to domain=0:4,
axis lines = left]
\addplot[red] {5 * x * 1 / pow(e,x) + 1}; \end{axis}
\end{tikzpicture}
\end{figure}
Aber das ist falsch. So sollte es aussehen:
Was ich beheben muss:
- ausgehend von y = 0 statt x = 1
- die Kurve bis x = 8 laufen lassen und nicht einfach in der Mitte anhalten
Das ist alles. Ich möchte kein Raster oder sonst etwas ändern. Es wäre sehr nett, wenn Sie mir helfen könnten.
Antwort1
Posten Sie immer kompilierbaren Code, damit die Antwortenden einen Ausgangspunkt haben.
Sie benötigen das domain
, für das Sie plotten möchten.
\documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{compat=1.17}
\begin{document}
\begin{tikzpicture}
\begin{axis}[%
domain=-1:8,
xmin=-1, xmax=8,
ymin=0, ymax=3,
smooth,
axis lines = left]
\addplot[red] {5 * x * 1 / pow(e,x) + 1};
\end{axis}
\end{tikzpicture}
\end{document}