When combining axis y discontinuity=crunch
and grid
as in the MWE below the grid line is visible in the discontinuity, cf. (0,0) -- (0,0.2)
in the MWE. How can one avoid this without adjusting axis limits?
MWE:
\documentclass[tikz]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.17}
\standaloneenv{tikzpicture}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
axis y discontinuity=crunch,
xmin=0,
ymin=0,
grid,
]
\end{axis}
\end{tikzpicture}
\end{document}