Seite 1 von 1

Schaubild erstellen

Verfasst: Mi 12. Sep 2012, 08:13
von Fabian
Hallo

Ich versuche verzweifelt ein Schaubild zu erstellen. Dies sollte so aussehen:

Links auf der Seite sollten drei Kästchen übereinander stehen: oben Operating Leverage, Mitte Cost Structure und unten Accounting return. Um alle drei Kästchen herum ein grosses Kächstchen. Links von Operating Leverage, in der Mitte der Seite, ein weiteres Kästchen CAPM, darunter auf der Höhe von Accounting Return ein Kästchen Analyst Forecast. Ganz rechts auf der Seite, in der Mitte der Graphik das letzte Kästchen Risk. Das was ich bis jetzt hingekriegt habe, sieht nicht annähernd danach aus. Könnte mir jemand helfen! Many thanks.

\documentclass[12pt,leqno,titlepage,a4paper]{scrartcl}
\usepackage{tikz}
\usetikzlibrary{arrows,decorations.pathmorphing,backgrounds,fit,positioning,shapes.symbols,chains}

\begin{document}

\begin{figure}[H]
\centering
\begin{tikzpicture}[font=\footnotesize, every node/.style={node distance=2cm},%
force/.style={draw, fill=black!10, inner sep=5pt, text width=3.8cm, text badly centered,%
minimum height=1.2cm, font=\bfseries\footnotesize}]
\node [force](cc) {Cost Structure};
\node [force, above of=cc](ol){Operating Leverage};
\node [force, below of cc](ac){Accounting returns};
\node [force ,fit=(cc) (ol), align=none](ccol){};
\node [force, right=1cm of ccol](capm){CAPM};
\node [force, below of=cm](ana){Analyst forecast};
\node [force, right=1cm of=cm](risk){Risk aspects};
\path[-]
(cc) edge node[above]{}(ol)
(cc) edge node[below]{}(ac)
(ccol) edge node[right]{}(capm)
(ccol) edge node[right]{}(ana)
(capm) edge node[left]{}(risk)
(ana) edge node[left]{}(risk);
\end{tikzpicture}
\onelinecaptionsfalse
\caption[tbd]{tbd\\tbd}
\end{figure}

\end{document} [/code]

Verfasst: Mi 12. Sep 2012, 09:04
von esdd
Hallo,

dein Beispiel wirft bei mir mehrere Fehler aus. Ich hab trotzdem mal versucht deine Beschreibung umzusetzen:
\documentclass[12pt]{scrartcl}
\usepackage{tikz}
\usetikzlibrary{fit,positioning}

\begin{document}

\begin{figure}[H]
\centering
\begin{tikzpicture}[font=\footnotesize,every node/.style={node distance=2cm},%
    force/.style={draw, fill=black!10,inner sep=2mm,text width=3.8cm, align=flush center,%
    minimum height=1.2cm, font=\bfseries\footnotesize}]
  \node [force](cc) {Cost Structure};
  \node [force,above of=cc](ol){Operating Leverage};
  \node [force,below of=cc](ac){Accounting returns};
  \node [force,fit=(cc) (ol) (ac),align=none,fill=none](ccol){};
  \node [force,right=1.2cm of ol](capm){CAPM};
  \node [force,right=1.2cm of ac](ana){Analyst forecast};
  \node [force,below of=capm,right=1cm of capm](risk){Risk aspects};
  \path[-]
    (cc) edge node[above]{}(ol)
    (cc) edge node[below]{}(ac)
    (ccol) edge node[right]{}(capm)
    (ccol) edge node[right]{}(ana)
    (capm) edge node[left]{}(risk)
    (ana) edge node[left]{}(risk);
\end{tikzpicture}
\onelinecaptionsfalse
\caption[tbd]{tbd\\tbd}
\end{figure}

\end{document}
Gruß
Elke

Verfasst: Mi 12. Sep 2012, 09:15
von Fabian
Hallo

Besten Dank für die rasche Hilfe! Das kommt meinen Vorstellungen schon sehr nahe.

Wie definiere ich den Anker für die Verbindungslinien so, dass auf der Höhe von Operating Leverage die Linie beginnt, welche zu CAPM geht, und auf der Höhe von Accounting return, welche zu Analyst Forecast geht?

Beste Dank und Gruss,
Fabian

Verfasst: Mi 12. Sep 2012, 10:23
von esdd
Hallo,

eine Möglichkeit ist
  \path[-] 
    (cc) edge node[above]{}(ol) 
    (cc) edge node[below]{}(ac) 
    (ccol.east|-ol) edge node[right]{}(capm) 
    (ccol.east|-ac) edge node[right]{}(ana) 
    (capm) edge node[left]{}(risk) 
    (ana) edge node[left]{}(risk); 
Gruß
Elke

Verfasst: Mi 12. Sep 2012, 10:50
von Fabian
Super, danke dir!