
Dies ist mein erstes Diagramm und ich habe eine halbe Stunde lang versucht zu googeln, konnte aber nicht herausfinden, wie ich meinen Versuch, dieses Diagramm zu replizieren, beheben kann. Kann mir jemand helfen?
Das ist, was ich habe:
Bisherige Fehler:
- parabola (2,2)node[pos=0.8, right=10pt] {erfahren}; Positionierung funktioniert nicht, die Parabeln sind trotzdem falsch
- Ich konnte nicht herausfinden, wie man diese Parabeln zeichnet, so etwas wie -((x-2)^2)+2
Vielen Dank im Voraus !
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}
\draw (0,0) -- (5,0) node[pos=0.5,below=14pt] {Zeit$\rightarrow$};
\draw (0,0) -- (0,3) node[pos=0.5, left=10pt][text width=2cm]{$\uparrow$\\Emotionale\\Insensität};
\draw (0,0) parabola (2,2)node[pos=0.8, right=10pt] {erfahren};
\draw[dashed] (0,0) parabola (3,2)node[pos=0.5, right=10pt] {vorhergesagt};
\end{tikzpicture}
\end{document}
Antwort1
Mit ein wenig TikZ:
\documentclass[tikz]{standalone}
\begin{document}
\begin{tikzpicture}
% Time axis
\draw (0,0) -- node[below=1cm] {Time $\to$} (6,0);
% Emotional axis
\draw (0,0) -- node[left] {\parbox{2cm}{\centering $\uparrow$ \\ Emotional \\ intensity}} (0,4);
% Time ticks
\foreach \x [count=\j] in {0.2,3,4.5,6} {
\draw (\x,0) coordinate (t\j) -- (\x,-0.1cm) node[below] (tt\j) {Time \j};
}
\node[below] at (tt1.south) {(Emotional event)};
% Curves
\draw (t1) .. controls +(1,2) .. node[above right] {Experienced} (t2);
\draw[dashed] (t1) .. controls +(1,4) .. node[above right] {Predicted} (t4);
\end{tikzpicture}
\end{document}