答案1
以下内容可能是一个起点。您可能想要查阅pgfmanual
,其中有“5 教程:图表作为简单图形”一节(目前为第 70 页),这可能会让您感兴趣。
\documentclass[tikz, border=3.14]{standalone}
\usetikzlibrary{matrix, shapes.misc}
\begin{document}
\begin{tikzpicture}
[
junction/.style={draw, circle, inner sep=2pt},
math node/.style={execute at begin node=$, execute at end node=$},
block/.style={draw, rectangle, math node},
]
\matrix[matrix of nodes, nodes={anchor=center}, row sep=7mm, column sep=5mm]
{
|(s)| & |[junction](j1)| & |[block](c)|c & |[block](P)|P & |[block](F)|F &
\coordinate(j2); & \coordinate(e); \\
& & & |[block](H)|H & & & \\
};
\begin{scope}
[every node/.style={above, math node}]
\draw[->]
(s) --node{\tilde{u}}node[at end, below left=-2pt, font=\tiny]{+} (j1);
\draw[->] (j1) --node{\tilde{e}} (c);
\draw[->] (c) --node{\tilde{\pi}} (P);
\draw[->] (P) --node{y} (F);
\draw[->] (F) --node{\hat{y}} (e);
\draw[->] (j2) |- (H) -|node[at end, below left=-2pt, font=\tiny]{-} (j1);
\end{scope}
\end{tikzpicture}
\end{document}