Remove scientific notation from log plot

by LMT-PhD   Last Updated July 11, 2019 22:23 PM

Hello stack exchange I have been looking at similar questions but can't make it work.

Here is my simplified code :

    \documentclass[border=2pt]{standalone}
    \usepackage[utf8]{inputenc}

    \usepackage{tikz,pgfplots}
    \usetikzlibrary{positioning} % pour le positionnement relatif
    \usetikzlibrary{calc} 

    %\pgfplotsset{scaled y ticks=false,
    %yticklabel style ={
    %/pgf/number format/fixed,
    %/pgf/number format/precision=3},
    %}

    \begin{document}
    \begin{tikzpicture}

    \begin{axis}[axis x line=bottom, axis y line = left , xmode=log,ymode=log, grid=both, 
    ymin = 0.05,ymax=1.1, extra y ticks={0.05,0.2,0.5},extra y tick labels={$0.05$,$0.2$,$0.5$},
    %scaled ticks=false, tick label style={/pgf/number format/fixed},
        extra x ticks={0.05,0.2,0.5},extra x tick labels={$0.05$,$0.2$,$0.5$},
    xmax=2, width=10cm]

    \def\n{1}
    \addplot[color=red,samples=10,domain=0.01:0.7,thick=3pt,ultra thick] { exp(-3.14159*\x*\n/sqrt(1-\x^2)) } ;

    \end{axis}

    \end{tikzpicture}
    \end{document}

The commented lines are solutions I found here, and tried without success:

log plot with scientific writing

As you can see, there are still 10^n ticks, between the ones I typed manually.

What am I doing wrong ?



Related Questions


Updated February 15, 2019 08:23 AM

Updated February 04, 2019 20:23 PM

Updated February 21, 2019 23:23 PM

Updated January 19, 2019 22:23 PM

Updated February 03, 2018 21:23 PM