![我如何从节点绘制到同一个节点本身的边?](https://linux22.com/image/339106/%E6%88%91%E5%A6%82%E4%BD%95%E4%BB%8E%E8%8A%82%E7%82%B9%E7%BB%98%E5%88%B6%E5%88%B0%E5%90%8C%E4%B8%80%E4%B8%AA%E8%8A%82%E7%82%B9%E6%9C%AC%E8%BA%AB%E7%9A%84%E8%BE%B9%EF%BC%9F.png)
我使用 tikz 绘制三角形中的三个节点,并用箭头连接。我想从每个节点添加一个圆边以本身,基本上像
\path[<->] (left) edge (left)
下面的示例一样添加边。但是,它似乎不起作用。有人能给我提示如何解决这个问题/在哪里查看吗?
\begin{tikzpicture}
\draw(0,0)node[left] (left){news media };
\draw(5,0)node[right] (right) {citizens};
\draw(60:5)node[above] (above){political actors};
\path[<->] (left) edge (right);
\path[<->] (left) edge (above);
\path[<->] (above) edge (right);
\end{tikzpicture}
答案1
loop
正如问题下方评论中所述,可以使用pgfmanual (v3.0.1a) 中的第 70.4 节,第 748 页。应用到你给出的例子,它将类似于
\documentclass[border=2mm]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw(0,0)node[left] (left){news media };
\draw(5,0)node[right] (right) {citizens};
\draw(60:5)node[above] (above){political actors};
\path[<->] (left)
edge (right)
edge [loop left] node {bla} ()
;
\path[<->] (right)
edge (above)
edge [loop right] node {bli} ()
;
\path[<->] (above)
edge (left)
edge [loop above] node {blub} ()
;
\end{tikzpicture}
\end{document}
结果如下