Диаграммы "Метро Лайн" в латексе, какой подход лучше? - PullRequest
0 голосов
/ 05 марта 2019

Как можно попытаться визуализировать такую ​​диаграмму с помощью латекса.

Многие европейские альянсы, переосмысленные как система метро Европейские страны во многом связаны друг с другом https://www.washingtonpost.com/graphics/world/how-european-countries-are-bound-together/?noredirect=on

Существует ли пакет для такого типа диаграмм "линии метро"?

1 Ответ

0 голосов
/ 05 марта 2019

Может быть, следующий код 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

...