请帮我用 LaTeX 创建这个图表

请帮我用 LaTeX 创建这个图表

有人能告诉我如何使用 LaTeX 制作此图表吗?我不知道从哪里开始。

非常感谢你的帮助!!

俱乐部距离

答案1

像这样:

在此处输入图片描述

代码:

\documentclass[12pt,border=3mm,tikz,preview]{standalone}
    \usetikzlibrary{positioning,%
                    }
    \usepackage{mathtools}
\begin{document}
    \begin{tikzpicture}[
    node distance=7mm and 22mm,
                        ]
\coordinate (c1) at (0,0);
\foreach[count=\xi from 1] \i in {2,3,...,9}
    \coordinate[below=of c\xi] (c\i);
\draw[thick,shorten >=-1mm]  (c1) -- (c9);
%
\foreach[count=\xj from 1] \j in {2,4,6,8}
{
    \node (a\xj) [left=of c\j] {$\pmb{Dist}_{j=\xj}$};
    \draw[thick,dashed]   (a\xj) -- (c\j);
}
%
\node (b1) [right=of c1] {$Dist_{j=1}^{\max}$};
    \draw[dashed] (b1) -- (c1);
    \draw[dashed] (c2) -- (c2 -| b1.west);
\foreach \k in {3,5,7}
{
    \node (b\k) [right=of c\k] {$(Dist_{j=1}^{\max}),(Dist_{j=2}^{\max})$};
    \draw[dashed] (b\k) -- (c\k);
}
    \draw[dashed] (c9) -- (c9 -| b7.west);
%
\draw[<->,transform canvas={xshift=-7mm}]  
    (c2) -- node[left] {10 yards} (c4);
\draw[<->,transform canvas={xshift=7mm}]
    (c1) -- node[right] {5 yards} (c2);
\draw[<->,transform canvas={xshift=7mm}]
    (c2) -- node[right] {5 yards} (c3);
    \end{tikzpicture}
\end{document}

相关内容