2

Hi I need to remove the *10^4 from the axis and just make the points 10000,20000,30000 instead of 1*10^4, 2*10^4...

\documentclass{standalone}
\usepackage{pgfplots}

\begin{document}


\begin{tikzpicture}

\begin{axis}[
    xmin=0,xmax=10,
    ymin=0,ymax=30000,
    axis x line=bottom,
    axis y line=left,
    axis line style=-,
    xlabel={$x$},
    ylabel={$y$},
    ytick={0,10000,20000,30000},
    xmajorgrids=true,
    ymajorgrids=true,
    grid style= dashed
    ]


    \addplot expression[domain=0:10]{(26000*e^(-0.2*x))+(3000*e^(-0.4*x))+1000};       


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

You can use scaled ticks = false:

\documentclass{standalone}
\usepackage{pgfplots}

\begin{document}


\begin{tikzpicture}

\begin{axis}[
    xmin=0,xmax=10,
    ymin=0,ymax=30000,
    axis x line=bottom,
    axis y line=left,
    axis line style=-,
    xlabel={$x$},
    ylabel={$y$},
    ytick={0,10000,20000,30000},
    xmajorgrids=true,
    ymajorgrids=true,
    grid style= dashed,
    scaled ticks = false, % <=== add this
    ]
    \addplot expression[domain=0:10]{(26000*e^(-0.2*x))+(3000*e^(-0.4*x))+1000};       


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

enter image description here

| improve this answer | |
  • 1
    Thanks, worked a charm – Yaboi Feb 19 at 17:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.