答案1
在这里,我定义了一个要在其上构建的背景墙。我用 构建单独的“屏幕” \newscreen
,然后使用\stackinset
构建合成。最后,我将 放置\stackinset
为tikz
节点,以便我可以在附近放置一个蓝色箭头。
已编辑以供使用standalone
,以便该汇编可以作为 插入到其他文档中\includegraphics
。
\documentclass[border=0pt]{standalone}
\usepackage{stackengine,xcolor,tikz}
\usetikzlibrary{arrows}
\newcommand\myscreen{\fcolorbox{white}{black}{\rule{50pt}{40pt}}}
\renewcommand\useanchorwidth{T}
\newcommand\newscreen[3]{%
\savestack#1{\stackunder{%
\stackinset{c}{}{c}{}{\textcolor{white}{\bfseries#2}}{\myscreen}%
}{\tiny#3}}}
\tikzset{line/.style={draw, thick, -latex'}}
\fboxsep=0pt
\sffamily
\savestack\Wall{\textcolor{white}{\rule{220pt}{180pt}}}
\newscreen\Fa{+}{750 ms}
\newscreen\Fb{}{200 ms\hspace{7em}}
\newscreen\Fc{apple}{50 ms}
\newscreen\Fd{dog}{}
\newscreen\Fe{}{50 ms}
\newscreen\Ff{cat}{Tail response}
\begin{document}
\begin{tikzpicture}[inner sep=0pt]
\node at (0,0) {\stackinset{l}{165pt}{t}{112pt}{\Ff}{%
\stackinset{l}{125pt}{t}{82pt}{\Fe}{%
\stackinset{l}{110pt}{t}{40pt}{\Fd}{%
\stackinset{l}{70pt}{t}{67pt}{\Fc}{%
\stackinset{l}{52pt}{t}{25pt}{\Fb}{%
\stackinset{l}{15pt}{t}{5pt}{\Fa}{\Wall}}}}}}};
\draw[line, blue] (-3.6,.5) to [|-] (1.7,-3);
\end{tikzpicture}
\end{document}