0

How can I create a diagram like this one?

enter image description here

  • 1
    Welcome to TeX.SX. You could use pgfplots could you provide a minimal working example of what you've achieved so far? – Rico Jan 2 '16 at 15:44
  • 2
    Or plain TikZ. ;-) – Johannes_B Jan 2 '16 at 15:46
5

Just a quick sketch but this is the basic idea using pgfplots

\documentclass{article}
 \usepackage{tikz}
 \usepackage{pgfplots}
  \begin{document}    
   \begin{tikzpicture}
    \begin{axis}[%
        xlabel={Zeit},%
        ylabel={Produktivität},%
        xmin=0,%
        ytick=\empty,%
        xtick=\empty,%
        no markers,%
        smooth,%
        axis lines=left]
    \addplot{(-x^2+x*4)};
    \addplot{0};
   \end{axis}
  \end{tikzpicture}
 \end{document}

Which would look like this:

enter image description here

  • 1
    Add axis lines=left,no markers, and it's even closer. – Torbjørn T. Jan 2 '16 at 15:56
  • You can even add smooth to get smoother lines – Rico Jan 2 '16 at 16:06
3

This example of PGFPlotsshould get you started.

\documentclass{article}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{width=12cm,compat=1.12}

\begin{document}
\begin{tikzpicture}
\begin{axis}[
        title=My title,
        ylabel = Produktivitet,
        xlabel = Zeit,
]
\addplot[
   red,
   domain=0:20,
   samples=17,
]
{-x^2+12*x};
\legend{X}
\end{axis}
\end{tikzpicture}

\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.