# pgfplot makes wrong log scaling

I am making a simple semi-logarithmic diagram, with axis set as

\begin{axis}[
ymin=0.25, ymax=1.1, % y scale
ymode=log,
]


Basically, it works, but with that settings produces tick labels like

$10^{0}$ (that is OK), and $10^{-0.2}$, $10^{-0.4}$


etc., equidistantly. With settings like

\begin{axis}[
ymin=0.1, ymax=1.1, % y scale
ymode=log,
]


everything works as expected. I guess that the problem is that the range spanned is less than a log(10). Do I wrong something or it is a known bug?

• Why would you make a logarithmic plot over such a small range of values? A linear plot should be perfectly fine here. – JMP Jul 9 '16 at 19:53
• Because I am displaying a kind of saturation curve, where the values approach more and more 1. On a linear scale, most of the points are at the same vertical position. The logarithmic behavior is independent of the range. – katang Jul 10 '16 at 6:27

If you want a bigger axis range, you an simply enlarge it. If you prefer integer exponents, you can use ytick distance=1 (or choose a list of tick positions using ytick={<list>}).
• Regarding comma/point: try using \pgfkeys{/pgf/number format/use comma} in the document's preamble. It should change the global appearance of all number formatting routines of PGF and pgfplots. The reference for all kinds of number formatting options is in pgfplotstable.pdf or, equivalently, in pgfmanual.pdf. A brief summary is in pgfplots.pdf. – Christian Feuersänger Jul 12 '16 at 18:39