Latex中的“地铁线”图,什么是最佳方法?

时间:2019-03-05 08:57:45

标签: latex diagram

如何尝试用Latex渲染这样的图。

欧洲的许多联盟,被重新构想成欧洲的地铁系统 国家以多种方式捆绑在一起 https://www.washingtonpost.com/graphics/world/how-european-countries-are-bound-together/?noredirect=on

是否有用于此类“地铁线”图的软件包?

1 个答案:

答案 0 :(得分:2)

也许以下tikz代码可能是一个起点:

\documentclass{standalone}

\usepackage{tikz}
\usetikzlibrary{calc}

\begin{document}

\begin{tikzpicture}

\coordinate (Norway) at (0,1);
\coordinate (Belgium) at (2,0);

\draw[ultra thick, red] (Norway) -- (1:0.9599) -- (Belgium);
\draw[ultra thick, blue] ($(Norway) + (0,-0.1)$) --   ($(1:0.9599) + (-0.03,-0.065)$) -- ($(Belgium) + (0,-0.065)$);

\node[rotate=45,anchor=west] at (Norway) {Norway};
\draw[fill=white] (Norway) circle (0.03);
\draw[fill=white] ($(Norway) + (0,-0.1)$) circle (0.03);

\node[rotate=45,anchor=west] at (Belgium) {Belgium};
\draw[fill=white] (Belgium) circle (0.03);
\draw[fill=white] ($(Belgium) + (0,-0.065)$) circle (0.03);

\end{tikzpicture}

\end{document}

enter image description here