I know it's possible to format the exponent of the log axis tick marks using log plot exponent style
, but this affects both the x and y axes. Is there a way to give different specifications for each. For example, supposed I wanted precision=1 for the y-axis and precision=2 for the x-axis. Is there any way to do this that doesn't involved either manually specifying the axis labels or an excessive amount of code? Thanks for any advice.
\documentclass{article}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{loglogaxis}[
xtick distance=10^(0.25),
ytickten={0,0.5,...,4.5},
log plot exponent style/.style={/pgf/number format/.cd,fixed,zerofill,precision=2},
]
\addplot[domain=1:10] {exp(x)};
\end{loglogaxis}
\end{tikzpicture}
\end{document}