答案1
出于安全原因,我不会关注外部链接。因此,我只是从 pgfmanual 中复制了一个xbar
图示例,但您会发现添加自己的数据很简单。当然,我使用groupplots
,正如我在评论中所建议的那样。
\documentclass[tikz,border=3.14mm]{standalone}
\usetikzlibrary{patterns,positioning}
\usepackage{pgfplots}
\pgfplotsset{compat=1.16}
\usepgfplotslibrary{groupplots}
\begin{document}
\begin{tikzpicture}
\begin{groupplot}[group style={group size=3 by 1},xmin=0,ymin=0,height=4cm,
width=5cm,no markers, xbar,hide axis%,xtick=\empty,ytick=\empty
]
\nextgroupplot
\addplot [draw=black,
pattern=horizontal lines dark blue,
] coordinates {
(3,5) (5,10) (15,15) (20,20) (35,25)
};
\nextgroupplot
\addplot [draw=black,
pattern=horizontal lines dark blue,
] coordinates {
(3,5) (5,10) (15,15) (20,20) (35,25)
};
\nextgroupplot
\addplot [draw=black,
pattern=horizontal lines dark blue,
] coordinates {
(3,5) (5,10) (15,15) (20,20) (35,25)
};
\end{groupplot}
\draw[-latex] ([xshift=-2mm]group c1r1.south west) --
([xshift=-2mm]group c1r1.north west)
node[midway,sloped,above,font=\sffamily] {values};
\draw[-latex] ([xshift=-2mm]group c1r1.south west) -- (group c3r1.south east)
node[below,right,font=\sffamily] {nodes};
\foreach \X in {1,2,3}
{\node[below=4pt of group c\X r1.south] {\X};}
\end{tikzpicture}
\end{document}