Menu

#188 Gap in logarithmic axis with axis line = middle

v1.0 (example)
open
nobody
None
5
2017-10-22
2017-10-22
jrm
No

The following leaves a big gap between the y axis (logarithmic) and the x axis when using 'middle' for the x axis line. The problem goes away if the first data point is uncommented, or if 'axis x line=bottom' is used.

\documentclass[border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.15}
\begin{document}
 \begin{tikzpicture}
     \begin{semilogyaxis}[axis lines=middle]
         \addplot table {
                 % 2   0.01    % Looks fine with this additional point
                 5   100
                 20  100000
             };
     \end{semilogyaxis}
 \end{tikzpicture}
\end{document}

Discussion

MongoDB Logo MongoDB