I want to draw a diagram that just that looks as follows:
where I want the diamond to put side-by-side and I can write something at the left of the diagram with line breaks.
The working that I managed to do is as follows:
\documentclass[paper=a4]{scrbook}
\usepackage{longtable, pdflscape, tikz, tikz-cd}
\usetikzlibrary{arrows, matrix, positioning, shapes, shapes.geometric, calc, intersections, decorations.pathreplacing}
\newcommand{\tikznode}[2]{\relax
\ifmmode%
\tikz[remember picture,baseline=(#1.base),inner sep=0pt] \node (#1) {$#2$};
\else
\tikz[remember picture,baseline=(#1.base),inner sep=0pt] \node (#1) {#2};%
\fi}
\begin{document}
\tikzstyle{polygon} = [regular polygon, regular polygon sides=8, draw, fill=blue!20,
text width=5em, text badly centered, node distance=3cm, inner sep=0pt]
\tikzstyle{block} = [rectangle, draw, fill=blue!10,
text width=6em, text centered, rounded corners, minimum height=4em]
\tikzstyle{block2} = [rectangle, draw, fill=blue!20,
text width=12em, text centered, rounded corners, minimum height=4em]
\tikzstyle{block3} = [rectangle, draw, fill=blue!30,
text width=12em, text centered, rounded corners, minimum height=4em]
\tikzstyle{block4} = [rectangle, draw, fill=blue!40,
text width=12em, text centered, rounded corners, minimum height=4em]
\tikzstyle{block5} = [rectangle, draw, fill=blue!50,
text width=12em, text centered, rounded corners, minimum height=4em]
\tikzstyle{block6} = [rectangle, draw, fill=blue!60,
text width=12em, text centered, rounded corners, minimum height=4em]
\tikzstyle{line} = [draw, -latex']
\tikzstyle{cloud} = [draw, ellipse,fill=red!20, node distance=2cm,
minimum height=4em]
\begin{figure}[!h]
\centering
\begin{tikzpicture}[node distance = 2cm, auto]
% Place nodes
\node [cloud] (record) {Recording the EEG signals};
\node [cloud, below of=record, node distance=3cm] (flattening) {Flattening the recorded EEG signals};
\node [block2, below of=flattening, node distance=3cm] (semigroup) {Semigroup of EEG signals};
\node [block2, below of=semigroup, right of=semigroup, node distance=3.5cm] (semigroupdiagonal) {Semigroup of\ diagonal EEG signals};
\node [block2, below of=semigroup, left of=semigroup, node distance=3.5cm] (semigroupaffine) {Semigroup of affine scaling maps};
\node [polygon, below of=semigroupaffine, node distance=4cm] (unipotent) {Unipotent matrix of EEG signals};
\node [polygon, below of=semigroupdiagonal, node distance=4cm] (diagonal) {Diagonal matrix of EEG signals};
\path [line] (record) -- (flattening);
\path [line] (flattening) -- (semigroup);
\path [line] (semigroup) -| (semigroupaffine);
\path [line] (semigroup) -| (semigroupdiagonal);
\path [line] (semigroupaffine) -- (unipotent);
\path [line] (semigroupdiagonal) -- (diagonal);
\coordinate (tmp1) at ($ (record.north)!-0.1!(flattening.north) $);
\draw[dashed] ([xshift=-7cm]tmp1)node[below right]{Flat EEG} -- ([xshift=7cm]tmp1);
\coordinate (tmp2) at ($ (flattening.south)!.5!(semigroup.north) $);
\draw[dashed] ([xshift=-7cm]tmp2)node[below right]{Krohn-Rhodes decomposition of EEG signals} -- ([xshift=7cm]tmp2);
\end{tikzpicture}
\end{figure}
\end{document}
that produces the following:
How can I achieve this? Please help.


