이 pgfplot(5x*e^{-x}+1)을 수정하는 방법은 무엇입니까?

이 pgfplot(5x*e^{-x}+1)을 수정하는 방법은 무엇입니까?
\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}

어떻게 생겼는지

하지만 그것은 잘못된 것입니다. 다음과 같이 표시됩니다. 여기에 이미지 설명을 입력하세요

수정해야 할 사항:

  1. x = 1 대신 y = 0부터 시작
  2. 곡선을 x = 8로 만들고 중간에서 멈추지 않게 하세요.

그게 전부입니다. 나는 그리드나 다른 어떤 것도 변경되는 것을 원하지 않습니다. 당신이 나를 도울 수 있다면 매우 좋을 것입니다.

답변1

응답하는 사람들이 출발점을 가질 수 있도록 항상 컴파일 가능한 코드를 게시하십시오.

domain플롯하려는 이 필요합니다 .

\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}

그래프

관련 정보