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}

1 Answer 1

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

1
  • 1
    Thanks, worked a charm
    – Yaboi
    Commented Feb 19, 2020 at 17:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .