title: TikZ, resizing and fitting
body: <p>I want to take a PGF picture, scale it down (scaling the text as well, so <code>\resizebox</code> would be perfect) to obtain a certain height, then put a rotated text on the left of the picture and create a node containing everything.</p>
  
  <p>Something like this:</p>
  
  <p><a href="https://i.stack.imgur.com/FlTO7.png" rel="noreferrer"><img src="https://i.stack.imgur.com/FlTO7.png" alt="Algorithm example"></a></p>
  
  <p>But I want to be able to set the height for the chart without scaling down the rotated "title".</p>
  
  <p>Here is the LaTeX code for this example:</p>
  
  <pre class="lang-latex prettyprint-override"><code>\documentclass{article}
  \usepackage{tikz}
  \usetikzlibrary{positioning,fit,shapes.geometric,backgrounds}
  
  \begin{document}
  \begin{tikzpicture}[%
    inner sep=2mm,
      delimiter/.style={ellipse, very thick, fill=red!30, draw=red!50},
      action/.style={trapezium, trapezium left angle=120, trapezium right angle=60, thick, fill=blue!30, draw=blue!50, align=center},
      loop/.style={ellipse, thick, fill=yellow!30, draw=yellow!50, align=center},
    title/.style={font=\LARGE\scshape,node distance=16pt, text=black!40, inner sep=1mm},
    background/.style={rectangle, rounded corners, fill=black!5, draw=black!15, inner sep=4mm}
  ]
  
    \node[delimiter] (begin) {Begin};
    \node[action] (cluster residues) [below=of begin] {Cluster residues};
    \node[action] (set clusters) [below=of cluster residues] {Set properties\\for every cluster};
    \node[action] (find pockets) [below=of set clusters] {Find clusters with\\$normalized\ SAS &lt; 1$};
    \node[action] (sort pockets) [below=of find pockets] {Sort pockets found};
    \node[delimiter] (end) [below=of sort pockets] {End};
  
    \draw[-&gt;] (begin.south) -- (cluster residues);
    \draw[-&gt;] (cluster residues) -- (set clusters);
    \draw[-&gt;] (set clusters) -- (find pockets);
    \draw[-&gt;] (find pockets) -- (sort pockets);
    \draw[-&gt;] (sort pockets) -- (end);
  
    \node[fit=(begin)(cluster residues)(set clusters)(find pockets)(sort pockets)(end)] (chart) {};
    \node[title] (title) [left=of chart] {\rotatebox{90}{General algorithm}};
  
    \begin{scope}[on background layer]
      \node[background,fit=(chart)(title)] {};
    \end{scope}
  \end{tikzpicture}
  \end{document}
  </code></pre>
  
  <p>Any ideas on how to use <code>\resizebox</code>, <code>\adjustbox</code> or anything else to resize <em>only</em> the chart (not the "General algorithm" label)?</p>