TikZ 初學者:很好地複製一個簡單的圖表

TikZ 初學者:很好地複製一個簡單的圖表

這是我的第一個圖,我嘗試用谷歌搜尋半個小時,但無法弄清楚如何修復我複製此圖的嘗試。有人可以幫我嗎?

在此輸入影像描述

這就是我所得到的:

到目前為止的錯誤:

  1. 拋物線 (2,2)node[pos=0.8, right=10pt] {erfahren};定位不行,反正比喻都是錯的
  2. 我找不到如何繪製這些寓言,例如 -((x-2)^2)+2

先感謝您 !

\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}

在此輸入影像描述

答案1

一點 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}

在此輸入影像描述

相關內容