latex画图,案例展示
\begin{tikzpicture}[auto,
box/.style = {draw, minimum height=3cm, minimum width=3cm, align=left, outer sep=0pt},
lbl/.style = {anchor=north west, outer sep=0mm},
arrow1/.style = {
draw = black, thick, -{Latex[length = 2mm, width = 1.5mm]},
},
arrow2/.style = {
draw = black, line width=2pt, {Latex[length = 2mm, width = 2.5mm]}-{Latex[length = 2mm, width = 2.5mm]}
},
arrow3/.style = {
draw = black, dashed, line width=1pt, -{Latex[length = 2mm, width = 2.5mm]}
} ]
\node (n0) [box, label={[lbl] north west:T },] {
};
\node (n01) [box,
label={[lbl] north west:R},
below =25mm of n0
] { };
\node (n00) [box,
label={[lbl] north west:V},
below =20mm of n01
] { };
\node (n1) [box,
label={[lbl] north west:V },
left = 10mm of n00
] { };
\node (n3) [box,
label={[lbl]north west:V},
right=10mm of n00
]
{ };
\path[arrow1] ([xshift=-5ex] n01.north) -- node{\rotatebox{90}{text}} ([xshift=-5ex] n0.south);
\path[arrow1] ([xshift=5ex] n0.south) -- node{\rotatebox{90}{text}} ([xshift=5ex] n01.north);
\path[arrow1] (n01) -- node[above]{text} (n00);
\path[arrow2] (n00) --node[above]{text} (n1);
\path[arrow2] (n00) --node{text} (n3);
\path[arrow3] (n0) -| node[above]{text}([xshift=-5ex]n1.north);
\path[arrow3] (n0) -| node[above]{text}([xshift=5ex]n3.north);
\path[arrow1] ([xshift=5ex]n1.north) |-node{text} (n01);
\path[arrow1] ([xshift=-5ex]n3.north) |-node[above]{text} (n01);
\end{tikzpicture}
包
\usepackage{tikz}
\usetikzlibrary{chains,scopes,positioning,backgrounds,shapes,fit,shadows,calc,arrows.meta}