乳胶中的直线流程图

乳胶中的直线流程图

我怎样才能绘制像这样的流程图?在此处输入图片描述

我知道如何绘制框图,但我从未见过像这样的工作流程图示例。尤其是我在生成弯曲箭头时遇到了困难。我将不胜感激任何帮助。

答案1

TikZ 解决方案。要使用 进行绘制brace,需要decorations.pathreplacing来自 tikzlibrary。语法显示在下方,amplitude可以raise根据需要进行更改。两个点是开始/结束点,括号将绘制在它们之间。

\draw[decorate,thick,decoration={brace,amplitude=5pt,raise=15pt},] 
(10,0)--node[below=0.5cm,mybox2]{Spectra Collection \\ (Measurement-based Sampling)}(7,0);

输出

代码:

\documentclass[12pt,oneside]{book}
\usepackage{tikz}
\usepackage{siunitx}
\usetikzlibrary{decorations.pathreplacing,,positioning}
\tikzset{mybox/.style = {rectangle, text width=4cm,minimum height=2cm,align=center},
mybox2/.style = {rectangle, text width=6cm,minimum height=2cm,align=center} 
}
\begin{document}
\begin{tikzpicture}
\draw[-] (0,0)node[pos=0,below]{\tiny $t_k\,\si{\s}$} --
node[pos=0.1,above=-15pt,mybox] {Time \\Update}
node[pos=0.6,above=-15pt,mybox] {Blob \\Extraction}
node[pos=0.2,below]{\tiny $t_n\,\si{\s}$} 
node[pos=0.5,below]{\tiny $t_k+\SI{0.1}{\s}$}
node[pos=0.7,below]{\tiny $t_m\,\si{\s}$}
node[pos=1,below]{\tiny $t_n+\SI{0.4}{\s}$}
(10,0);
\draw[thick]  (0,-5pt)--(0,5pt) (2,-5pt)--(2,5pt)  (5,-5pt)--(5,5pt)  (7,-5pt)--(7,5pt)  (10,-5pt)--(10,5pt);
\draw[decorate,thick,decoration={brace,amplitude=5pt,raise=15pt}] 
(5,0)--node[below=0.5cm,mybox]{Panchromatic Image \\ Acquisition}(0,0);
\draw[decorate,thick,decoration={brace,amplitude=5pt,raise=30pt},] 
(2,0)--node[above=0.8cm,mybox2]{Spectra Collection \\ (Prediction-based Sampling)}(10,0);
\draw[decorate,thick,decoration={brace,amplitude=5pt,raise=15pt},] 
(10,0)--node[below=0.5cm,mybox2]{Spectra Collection \\ (Measurement-based Sampling)}(7,0);
\end{tikzpicture}
\end{document}

答案2

我用堆栈做了这个。

\documentclass{article}
\usepackage[usestackEOL]{stackengine}
\def\useanchorwidth{T}
\newcommand\vstrut[1][]{\makebox[0pt]{\rule[-1ex]{1pt}{2ex}}\mnote{#1}}
\def\mnote#1{\brlap{$\scriptstyle#1$}}
\def\dx#1{\hbox to #1 {}}
\def\dline#1{\hbox to #1 {\hrulefill}}
\def\dubrace#1{\hbox to #1 {\upbracefill}}
\def\ddbrace#1{\hbox to #1 {\downbracefill}}
 \begin{document}
\stackunder[-1ex]{%
  \Shortstack{Time\\Update\\ \dx{1in}}%
  \Shortstack{%
    Spectrum Collection\\(Prediction-based Sampling)\\ \ddbrace{3.5in}\\
    Blob\\Extraction\\ \dx{3.5in}}%
}{%
  \Shortunderstack{
    \vstrut[t_k\mathrm{s}]\dline{1in}\vstrut[t_n\mathrm{s}]\dline{1.25in}%
    \vstrut[t_k + 0.1\mathrm{s}]\\ \dubrace{2.25in}\\Panchromatic Image\\Aquisition}%
  \dline{1in}%
  \Shortunderstack{
    \vstrut[t_n\mathrm{s}]\dline{1.25in}\vstrut[t_k + 0.4\mathrm{s}]\\
    \dubrace{1.25in}\\Spectra Collection\\(Measurement-based Sampling)}%
}
\end{document}

在此处输入图片描述

相关内容