I want to draw a panel of graphs of citation networks receding into the page, as the below sketch demonstrates. In the below sketch, each blue rectangle represents a citation network at a different point in time, drawn as a tikzpicture.

I tried adapting this example of a vertical stack. Interchanging the x- and y-commands on that doesn't produce the right effect and so I though there might be a better way. enter image description here


I show here how to do it with one cobbled together tikz image (I don't know how to use tikz, so please forgive the incompetence) and use an \includegraphics for the rest. Substitute your code for each \savestack.

   \node [draw] (A) at (0,0) {demo text};
   \node [draw] (B) at (0,-.7) {demo text};
   \draw (A.215) -- (B.145);
   \draw (A.325) -- (B.35);
This sets and staggers the boxes.\\

or this\\


enter image description here

  • Never knew about the stackengine package. Cool. – mac389 Mar 1 '15 at 1:51

Like this?

        minimum height=4cm,
        minimum width=4cm,
       bottom color=blue,top color=blue!50

\foreach \x in{4,3,2,1}{
\node[box] (c1) at (\x,\x) {};

enter image description here

  • To replace the rectangles with tikzpictures, I would set the node style={draw=none}, and insert a tikzpicture environment inside a minipage as the node text? – mac389 Mar 1 '15 at 1:02

If all you want to do is to stack some tikzpictures, you can avoid nesting tikzpicture environments (which could produce undesired results or force you to previously box the inner environments) by simply using \raiseboxes and some \hspaces:



\draw[fill=orange!30] (0,0) rectangle (2.5,-4);
  \draw[fill=cyan!30] (0,0) rectangle (2.5,-4);
  \draw[fill=magenta!30] (0,0) rectangle (2.5,-4);
  \draw[fill=olive!30] (0,0) rectangle (2.5,-4);


enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.