# how to format the values of the pgfplots axes

you can see in the picture above that the values of the abscissa range from 0,05 to 0,4. how to do for the first value is 0.05 and not 5.10 ^ {- 2}?

• Does this help: tex.stackexchange.com/questions/96347/… ? Seems duplicate to me Mar 2 '18 at 10:17
• How about a MWE? Anyway, /pgf/number format/fixed should do the trick. Mar 2 '18 at 10:25

As TonioElGringo already stated in the comment below the question one possibility is to state /pgf/number format/fixed which forces all numbers to be displayed in "fixed" format.

In addition I show another method which results in the same result, but also shows why 0.05 by default is shown in scientific notation.

For details please have a look at the comments in the code.

% used PGFPlots v1.15
\documentclass[border=5pt]{standalone}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
xmin=0,
xmax=0.25,
ymin=0,
ymax=0.25,
xticklabel style={
% either change the number format to fixed
% regardless of the magnitude of the shown number ...
/pgf/number format/fixed,
},
yticklabel style={
% or change the limits of the standard algorithm that \pgfmathprintnumber'
% uses. By default the values are -1:4'. So all numbers smaller than
% 10^-1 or larger than 10^4 will be displayed using sci' notation
% and fixed' otherwise
/pgf/number format/std=-2,
},
]