答案1
您可以使用该axis x discontinuity
选项(正如评论中所建议的):
\documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
thick,
axis lines=left,
axis x discontinuity=crunch,
ticks=none,
xmin=0.8,
xmax=2.2,
ymin=-0.2,
ymax=1,
]
\addplot[thick,domain=1:2] {ln(x)};
\end{axis}
\end{tikzpicture}
\end{document}