figure-randomly-generation-vs-generate-by-sentence-length.tex 1.64 KB
Newer Older
曹润柘 committed
1 2

\begin{tikzpicture}
zengxin committed
3
	\tikzstyle{node} = [minimum height=1.0em,draw=teal,fill=teal!10]
曹润柘 committed
4 5 6 7 8 9 10 11 12
	\node[node,minimum width=2.0em] (sent1) at (0,0) {};
	\node[node,minimum width=5.0em,anchor=north west] (sent2) at (sent1.south west) {};
	\node[node,minimum width=1.0em,anchor=north west] (sent3) at (sent2.south west) {};
	\node[node,minimum width=3.0em,anchor=north west] (sent4) at (sent3.south west) {};

	\node[node,minimum width=4.0em] (sent5) at (12em,0) {};
	\node[node,minimum width=4.5em,anchor=north west] (sent6) at (sent5.south west) {};
	\node[node,minimum width=4.5em,anchor=north west] (sent7) at (sent6.south west) {};
	\node[node,minimum width=5em,anchor=north west] (sent8) at (sent7.south west) {};
zengxin committed
13

曹润柘 committed
14 15 16 17 18 19 20 21 22 23 24 25 26
	\node[font=\scriptsize,anchor=east] (line1) at (sent1.west) {sent1};
	\node[font=\scriptsize,anchor=east] (line2) at (sent2.west) {sent2};
	\node[font=\scriptsize,anchor=east] (line3) at (sent3.west) {sent3};
	\node[font=\scriptsize,anchor=east] (line4) at (sent4.west) {sent4};

	\node[font=\scriptsize,anchor=east] (line5) at (sent5.west) {sent1};
	\node[font=\scriptsize,anchor=east] (line6) at (sent6.west) {sent2};
	\node[font=\scriptsize,anchor=east] (line7) at (sent7.west) {sent3};
	\node[font=\scriptsize,anchor=east] (line8) at (sent8.west) {sent4};
	\begin{pgfonlayer}{background}
	\node [rectangle,inner sep=-0.0em,draw] [fit = (sent1) (sent2) (sent3) (sent4)] (box1) {};
	\node [rectangle,inner sep=-0.0em,draw] [fit = (sent5) (sent6) (sent7) (sent8)] (box2) {};
	\end{pgfonlayer}
zengxin committed
27 28
	\node[font=\scriptsize] (node1) at ([yshift=-3em]sent2.south) {随机生成};
	\node[font=\scriptsize] (node2) at ([yshift=-1em]sent8.south) {排序生成};
曹润柘 committed
29 30

\end{tikzpicture}