I do have a lot of loglogaxis plots in my document. Often the y-values pass through 1, i.e. from 0.5 to 2. Hence, the y-ticklabels are of the form
.
The minus sign adds a lot of extra space to the spacing of the y-label. I would like to stick with 10-base notation of the y tick labels. In this case,I do not want to use
log ticks with fixed point
I already found, how to shrink the minus sign. How can I change specifically all the minus sign in the exponents of the tick labels in pgfplots?
MWE:
\documentclass{minimal}
\usepackage{pgfplots}
\begin{document}
\( \sqrt{\scalebox{0.5}[1.0]{\( - \)}\frac{1}{9}} \)
% cf.
\( \sqrt{-\frac{1}{9}} \)
\begin{tikzpicture}
\begin{loglogaxis}[
xlabel={xlabel is nicely separated},
ylabel={ylabel is displaced to far}
]
\addplot
table{
x y
0.1 0.1
1.0 1.0
10.0 10.0
};
\end{loglogaxis}
\end{tikzpicture}
\end{document}
Any help is highly appreciated. Thank you.


\unaryminusmacro. I personally prefer the right aligned yticklabels.Did you spotted the hanging first xticklabel? I solved this with the
\smashcommand:\newcommand\unaryminus{\smash{\scalebox{0.5}[1.0]{\( - \)}}}. Would you add this to your answer?And still, having this automated, would be great!
– somehow.different Nov 14 '17 at 08:39\smash. – somehow.different Nov 14 '17 at 08:49