
我試圖在組圖的中間包含一個 \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}
這導致出現以下圖像:
這就是我想要實現的目標。