流程图中的平滑弯曲箭头

流程图中的平滑弯曲箭头

我是 Latex 新手,对 tikzpicture 或 pgfplots 了解甚少,所以您知道会发生什么……请帮我绘制以下流程图类型的图表。这里的笛卡尔图是常规的 X vs Y 图,应该使用提供的表格生成,目前坐标为 {(0,0) (1,1)}。谢谢。

流程图

答案1

这对于开始来说是否公平......提案从几个style定义开始,然后通过等将各个节点放置在多边形的中心,最后,above leftbelow right同样具有样式定义的线连接节点。

参考:是否可以更改 TikZ/PGF 中箭头的大小?

在此处输入图片描述

代码

\documentclass[tikz,border=10pt]{standalone}
\usetikzlibrary{arrows,arrows.meta,shapes.geometric,positioning,calc}

\tikzset{poly7/.style={draw=blue!30,fill=blue!30,minimum size=2cm,regular polygon,regular polygon sides=7,scale=0.5},
rect/.style={draw=blue!20, fill=blue!20,rectangle, minimum height=1cm,rounded corners},
line/.style={draw,solid,line width=2mm,-{Latex[length=4mm]},rounded corners}
}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}

% create the node

\node[poly7] (a) {\color{red} My Text2};
\node[rect, above right=0.3cm and1cm of a] (b) {\color{red} My Text 0};
\node[below left=0.1cm and 1.5cm of a] (c){};
\path[color=blue,line] (b.west) -| node[above right](){\tiny My Text 1} (a.north);
\path[color=green!40!brown,line] (c.west) |- node[above right](){\color{black}\tiny My Text 3} (a.west);
\begin{axis}[scale=0.2,xshift=3cm,yshift=-1cm]
\node(sin) at (axis cs:-1,1){};
\addplot [red]  coordinates{(0,0) (2,2)};
\end{axis}
\path[color=green!40!brown,line] ([xshift=0.1cm]a.east)-- node[above,sloped](){\color{black}\tiny Predict}(sin);
\end{tikzpicture}
\end{document}

相关内容