关系图

关系图

这就是我想要的

图 1 在此处输入图片描述

图 2 在此处输入图片描述

图 3 在此处输入图片描述

借助尼科我可以这样画

  \documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows}
\usetikzlibrary{shapes.misc}
\usetikzlibrary{positioning}

\begin{document}

% First diagram
\begin{tikzpicture}[every node/.style={align=center}, implies/.style={double,double equal sign distance,-implies}]

% LEFT PART
\node[draw] (weak_existenceleft) at (-8, 0) {weak\\existence};
\node[draw] (strong_existenceleft) at (-4, 0) {strong\\existence};

\draw[implies] (strong_existenceleft) -- (weak_existenceleft);

\node[draw] (uniqueness_lawleft) at (-8, -4) {uniqueness\\in law};
\node[draw] (pathwiseuniquenessleft) at (-4, -4) {pathwise\\uniqueness};

\draw[implies] (pathwiseuniquenessleft) -- (uniqueness_lawleft);

% RIGHT PART
\node(weak_existence) at (0,0) {weak\\existence};
\node(pathwise_uniqueness) at (4,-4) {pathwise\\uniqueness};
\node (strong_existence) [draw] at (4,0) {strong\\existence};
\node (uniqueness_law) [draw] at (0,-4) {uniqueness\\in law};

\draw (node cs:name=weak_existence, anchor=north west) -- (node cs:name=weak_existence, anchor=north east) % top
      -- (node cs:name=pathwise_uniqueness, anchor=north east) %goes diagonally
      -- (node cs:name=pathwise_uniqueness, anchor=south east) % goes down
      -- (node cs:name=pathwise_uniqueness, anchor=south west) % bottom
      -- (node cs:name=weak_existence, anchor=south west) % goes diagonally
      -- cycle;

\draw[implies] (1,-2.4) -- (node cs:name=uniqueness_law, anchor=north);
\draw[implies] (2.9,-1.5) -- (node cs:name=strong_existence, anchor=south);
\end{tikzpicture}

\end{document}

在此处输入图片描述

图2:

\documentclass{standalone}

\usepackage{tikz}
\usetikzlibrary{arrows}
\usetikzlibrary{shapes.misc}
\usetikzlibrary{positioning}

\begin{document}

% First diagram
\begin{tikzpicture}[every node/.style={align=center}, implies/.style={double,double equal sign distance,-implies}]

\node(weak_existence) at (4,0) {weak\\existence};
\node(pathwise_uniqueness) at (0,-4) {pathwise\\uniqueness};
\node (strong_existence) [draw] at (0,0) {strong\\existence};
\node (uniqueness_law) [draw] at (4,-4) {uniqueness\\in law};

\draw (node cs:name=weak_existence, anchor=north east) -- (node cs:name=weak_existence, anchor=north west) % top
      -- (node cs:name=pathwise_uniqueness, anchor=north west) %goes diagonally
      -- (node cs:name=pathwise_uniqueness, anchor=south west) % goes down
      -- (node cs:name=pathwise_uniqueness, anchor=south east) % bottom
      -- (node cs:name=weak_existence, anchor=south east) % goes diagonally
      -- cycle;

\draw[implies] (3.1,-2.2) -- (node cs:name=uniqueness_law, anchor=north);
\draw[implies] (1,-1.7) -- (node cs:name=strong_existence, anchor=south);
\end{tikzpicture}

\end{document}

在此处输入图片描述

图 3

\documentclass{standalone}

\usepackage{tikz}
\usetikzlibrary{arrows}
\usetikzlibrary{shapes.geometric}
\usetikzlibrary{shapes.misc}
\usetikzlibrary{positioning}

\begin{document}

% First diagram

\begin{tikzpicture}[every node/.style={align=center}, implies/.style={double,double equal sign distance,-implies}, rect/.style={draw, inner sep=1em},hexa/.style={regular polygon, regular polygon sides=6, shape aspect=0.5, minimum height=1cm, draw}]

\node[rect] (weak_existence) at (0, 0) {weak\\existence\\\\\\pathwise\\uniqueness};
\node[rect] (strong_existence) at (8, 0) {strong\\existence\\\\\\uniqueness\\in law};

\node[hexa] (best) at (4,0) {The best\\possible\\situation};

\draw[implies] (strong_existence) -- (best);
\draw[implies] (weak_existence) -- (best);
\end{tikzpicture}

\end{document}

在此处输入图片描述

我对此仍然不完全满意,有人可以提供一些方法来做到这一点吗?非常感谢您的帮助。

请注意,对于第一个图表,右侧的绘图看起来不太好,有人可以修复我的绘图吗,这是因为单词的大小我无法控制它们 在此处输入图片描述

答案1

你可以从这个开始:

\documentclass{standalone}

\usepackage{tikz}
\usetikzlibrary{arrows}
\usetikzlibrary{shapes.misc}
\usetikzlibrary{positioning}

\begin{document}

% First diagram
\begin{tikzpicture}[every node/.style={align=center}]

\node(weak_existence) at (0,0) {weak\\existence};
\node(pathwise_uniqueness) at (4,-4) {pathwise\\uniqueness};
\node (strong_existence) [draw] at (4,0) {strong\\existence};
\node (uniqueness_law) [draw] at (0,-4) {uniqueness\\in law};

\draw (node cs:name=weak_existence, anchor=north west) -- (node cs:name=weak_existence, anchor=north east) % top
      -- (node cs:name=pathwise_uniqueness, anchor=north east) %goes diagonally
      -- (node cs:name=pathwise_uniqueness, anchor=south east) % goes down
      -- (node cs:name=pathwise_uniqueness, anchor=south west) % bottom
      -- (node cs:name=weak_existence, anchor=south west) % goes diagonally
      -- cycle;

\draw[-latex] (1,-2.5) -- (node cs:name=uniqueness_law, anchor=north);
\draw[-latex] (3.2,-1.5) -- (node cs:name=strong_existence, anchor=south);
\end{tikzpicture}

\end{document}

在此处输入图片描述

解释:

  • 绘制节点。align=center多条线需要此选项。
  • 绘制多边形:从弱存在的左上角开始,到右上角,依此类推。
  • 画箭头

第一个图的其他部分很简单:

\begin{tikzpicture}[every node/.style={align=center}, rect/.style={draw, inner sep=1em}]
\node[rect] (weak_existence) at (0, 0) {weak\\existence};
\node[rect] (strong_existence) at (4, 0) {strong\\existence};

\draw[latex-] (weak_existence) -- (strong_existence);
\end{tikzpicture}

最后一张图:

\documentclass{standalone}

\usepackage{tikz}
\usetikzlibrary{arrows}
\usetikzlibrary{shapes.geometric}
\usetikzlibrary{shapes.misc}
\usetikzlibrary{positioning}

\begin{document}

% First diagram
\begin{tikzpicture}[every node/.style={align=center}, rect/.style={draw, inner sep=1em},hexa/.style={regular polygon, regular polygon sides=6, shape aspect=0.5, minimum height=1cm, draw}]

\node[rect] (weak_existence) at (0, 0) {weak\\existence\\\\\\pathwise\\uniqueness};
\node[rect] (strong_existence) at (8, 0) {strong\\existence\\\\\\uniqueness\\in law};

\node[hexa] (best) at (4,0) {The best\\possible\\situation};

\draw[latex-] (best) -- (strong_existence);
\draw[latex-] (best) -- (weak_existence);
\end{tikzpicture}

\end{document}

在此处输入图片描述

现在就由你来把它们粘在一起了 =)

编辑:你很懒……

我取了第一个代码,复制并粘贴了第二个代码并将其移到左侧。我必须更改节点 ID,因为我已经在右图中使用了它。

我还改变了箭头的样式

\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows}
\usetikzlibrary{shapes.misc}
\usetikzlibrary{positioning}

\begin{document}

% First diagram
\begin{tikzpicture}[every node/.style={align=center}, implies/.style={double,double equal sign distance,-implies}]

% LEFT PART
\node[draw] (weak_existenceleft) at (-8, 0) {weak\\existence};
\node[draw] (strong_existenceleft) at (-4, 0) {strong\\existence};

\draw[implies] (strong_existenceleft) -- (weak_existenceleft);

\node[draw] (uniqueness_lawleft) at (-8, -4) {uniqueness\\in law};
\node[draw] (pathwiseuniquenessleft) at (-4, -4) {pathwise\\uniqueness};

\draw[implies] (pathwiseuniquenessleft) -- (uniqueness_lawleft);

% RIGHT PART
\node(weak_existence) at (0,0) {weak\\existence};
\node(pathwise_uniqueness) at (4,-4) {pathwise\\uniqueness};
\node (strong_existence) [draw] at (4,0) {strong\\existence};
\node (uniqueness_law) [draw] at (0,-4) {uniqueness\\in law};

\draw (node cs:name=weak_existence, anchor=north west) -- (node cs:name=weak_existence, anchor=north east) % top
      -- (node cs:name=pathwise_uniqueness, anchor=north east) %goes diagonally
      -- (node cs:name=pathwise_uniqueness, anchor=south east) % goes down
      -- (node cs:name=pathwise_uniqueness, anchor=south west) % bottom
      -- (node cs:name=weak_existence, anchor=south west) % goes diagonally
      -- cycle;

\draw[implies] (1,-2.5) -- (node cs:name=uniqueness_law, anchor=north);
\draw[implies] (3.2,-1.5) -- (node cs:name=strong_existence, anchor=south);
\end{tikzpicture}

\end{document}

在此处输入图片描述

相关内容