我试图在组图中间包含一个 \vdots,为此,我尝试插入一个没有边界轴的图,但无法做到这一点。
梅威瑟:
\documentclass[border=5pt, multi, tikz]{standalone}
\usepackage{pgfplots} \usetikzlibrary{quotes,arrows.meta}
\usetikzlibrary{decorations.pathreplacing,intersections}
\usetikzlibrary{shapes.misc}
\usetikzlibrary{calc,fit}
\usetikzlibrary{pgfplots.groupplots}
\begin{document}
\begin{tikzpicture}[every edge quotes/.append style={auto, text=blue}]
\begin{groupplot}[
group style=
{group size=1 by 4,
vertical sep=0pt,
group name = myplots},
height=2cm,
width=5cm,
xtick=\empty,
ytick=\empty,
]
\nextgroupplot
\addplot[blue, title=Multichannel Audio] table [col sep=comma] {audio1.csv} coordinate (ax1);
\nextgroupplot
\addplot[red] table [col sep=comma] {audio1.csv} coordinate[near start] (ax2) ;
\nextgroupplot
\addplot[hide axis, draw=none, no markers, axis line style={draw=none},
tick style={draw=none}] {0} node[midway, draw=none, align=center] (ax3) {$\vdots$};
\nextgroupplot
\addplot[green] table [col sep=comma] {audio1.csv} coordinate[near start] (ax2) ;
\end{groupplot}
\end{tikzpicture}
\end{document}
在红色和绿色图之间,我希望有一个 \vdots 来表示多个通道,而图中没有边界框。
答案1
因此,经过一番尝试,我找到了一种方法:
\documentclass[border=5pt, multi, tikz]{standalone}
\usepackage{pgfplots}
\usetikzlibrary{quotes,arrows.meta}
\usetikzlibrary{decorations.pathreplacing,intersections}
\usetikzlibrary{shapes.misc}
\usetikzlibrary{calc,fit}
\usetikzlibrary{pgfplots.groupplots}
\begin{document}
\begin{tikzpicture}[every edge quotes/.append style={auto, text=blue}]
\begin{groupplot}[
group style=
{group size=1 by 4,
vertical sep=0pt,
group name = myplots},
height=2cm,
width=5cm,
xtick=\empty,
ytick=\empty,
]
\nextgroupplot
\addplot[blue, title=Multichannel Audio] table [col sep=comma] {audio1.csv} coordinate (ax1);
\nextgroupplot
\addplot[red] table [col sep=comma] {audio1.csv} coordinate[near start] (ax2) ;
\nextgroupplot[hide axis, draw=none, no markers, axis line style={draw=none},
tick style={draw=none}]
\addplot[white] {0} node[black, midway, draw=none, align=center, yshift=3] (ax3) {$\vdots$};
\nextgroupplot
\addplot[green] table [col sep=comma] {audio1.csv} coordinate[near start] (ax2) ;
\end{groupplot}
\end{tikzpicture}
\end{document}
这导致了下面的图像:
这正是我想要实现的。