There seems to be a weird interaction between the fit package and relative positioning of scopes in tikz, as in, I don't understand why things happen the way they do. Here's my code:
\documentclass{standalone}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\newcommand\acr[1]{#1}
\usetikzlibrary{fit,positioning,calc}
\begin{document}
\tikzset{anacat/.style={anchor=north west,minimum height=1.5em,x=.3cm,y=.25cm,every node/.style={scale=0.3}}}
\tikzset{bin/.style={draw=black,anchor=west,text width=3cm}}
\begin{tikzpicture}[x=1cm,y=1.5cm]
\begin{scope}[shift={(0,0)},local bounding box=Hyy,anacat]
\node[rotate=90,anchor=north,align=center] at (0,3) {$H\to\gamma\gamma$};
\node[bin] at (1,0) {low $p_{\textrm{T}t}$};
\node[bin] at (1,1) {high $p_{\textrm{T}t}$};
\node[bin] at (1,2) {\acr{VBF} loose (\acr{MVA})};
\node[bin] at (1,3) {\acr{VBF} tight (\acr{MVA})};
\node[bin] at (1,4) {\acr{VH} leptonic};
\node[bin] at (1,5) {$VH$ leptonic};
\node[bin] at (1,6) {$t\bar{t}H$ leptonic};
\end{scope}
\node[draw,dotted,fit=(Hyy)] (Hyybox) {};
% \begin{scope}[shift={(0,-1)},local bounding box=HZZ,anacat]
\begin{scope}[shift={(Hyy.south west)},local bounding box=HZZ,anacat]
\node[rotate=90,anchor=north,align=center] at (0,2) {$H\to ZZ$};
\node[bin] at (1,0) {ggF $n_{j}=0$};
\node[bin] at (1,1) {ggF $n_{j}=1$};
\node[bin] at (1,2) {\acr{VBF} leptonic};
\node[bin] at (1,3) {\acr{VH} leptonic};
\node[bin] at (1,4) {\acr{VH} hadronic};
\end{scope}
\node[draw,dotted,fit=(HZZ)] {};
% \begin{scope}[shift={(0,-2.15)},local bounding box=HWW,anacat]
\begin{scope}[shift={(HZZ.south west)},local bounding box=HWW,anacat]
\node[rotate=90,anchor=north,align=center] at (0,2.5) {$H\to WW$};
\node[bin] at (1,0) {ggF $n_{j}=0$};
\node[bin] at (1,1) {ggF $n_{j}=1$};
\node[bin] at (1,2) {ggF $n_{j}\geq 2$};
\node[bin] at (1,3) {\acr{VBF} $n_{j}\geq 2$};
\node[bin] at (1,4) {\acr{WH}};
\node[bin] at (1,5) {\acr{ZH}};
\end{scope}
\node[draw,dotted,fit=(HWW)] {};
% \begin{scope}[shift={(0,-3))},local bounding box=Hbb,anacat]
\begin{scope}[shift={(HWW.south west)},local bounding box=Hbb,anacat]
\node[rotate=90,anchor=north,align=center] at (0,2) {$H\to b\bar{b}$};
\node[bin] at (1,1) {\acr{MVA} low $p_{\textrm{T}^V}$};
\node[bin] at (1,2) {\acr{MVA} low $p_{\textrm{T}^V}$};
\node[bin] at (1,3) {$\cdots$};
\end{scope}
\node[draw,dotted,fit=(Hbb)] {};
% \begin{scope}[shift={(0,-3.45)},local bounding box=Htt,anacat]
\begin{scope}[shift={(Hbb.south west)},local bounding box=Htt,anacat]
\node[rotate=90,anchor=north,align=center] at (0,1) {$H\to \tau\bar{\tau}$};
\node[bin] at (1,1) {$\cdots$};
\end{scope}
\node[draw,dotted,fit=(Htt)] {};
\end{tikzpicture}
\end{document}
Here's how I would have expected it to look like (these are the commented-out lines):
Here's how it actually looks like instead:
PS: This is a follow-up question for this one.



anchor=north westto position the scope. It is not a node. Stuff inside it gets placed wherever it would get placed withoutlocal bounding box. Thelocal bounding box=Hyyjust names whatever the result ends up being. So the styleanacatdoesn't make much sense to me. – cfr Jun 14 '17 at 03:52text height, I can take out theanchorpart. but the question how to place scopes relative to each other still remains. – carsten Jun 14 '17 at 07:27shiftto shift everything in the scope. But you can't treat the scope as a whole. – cfr Jun 14 '17 at 12:29