我想为分组图片插入自动引用的标签(a)、(b)...,但包含这些标签的节点框太大:
\documentclass{article}
\usepackage{caption, subcaption}
\usepackage{tikz}
\tikzset{
subcap/.style={
text width=1.3em, anchor=north west, inner sep=0pt,
fill=none, scale=4, draw
}
}
\usepackage{pgfplots}
\pgfplotsset{compat=1.17}
\begin{document}
\begin{figure}
\begin{tikzpicture}
\begin{axis} \addplot[domain=0:3] {x^2}; \end{axis}
\node[subcap] at (current bounding box.north west) {\subcaption{}\label{subfig}};
\node[subcap] at (current bounding box.south west) {(a)};
\end{tikzpicture}
\end{figure}
\end{document}
如何从带有(顶部)的框中删除所有不必要的空白\subcaption
以获得底部的结果?