[Tex/LaTex] TikZ, PGFPlots, or GNUplot: plotting a curve without the known function

gnuplotpgfplotstikz-pgf

I would like to make a plot of a function that has an overshoot of 25% and then settles with subtle oscillations at 100%. I would like to create it in one of the listed packages or in gnus case add on to PGFPlots. Unfortunately, I don't know the function I just have an image so I don't know how to start creating it.

enter image description here

Best Answer

Just for a starting point. It is not a complete answer.

\documentclass[pstricks,border=12pt]{standalone}
\usepackage{pst-plot}
\pstVerb
{
    /xi .125 def
    /tau .25 def
    /rho {xi 2 exp neg 1 add sqrt} def
    /amp 3 def
}
\def\f(#1){amp*(1-3^(-xi*(#1)/tau)*(cos((#1)*rho/tau)+sin((#1)*rho/tau)*xi/rho))}
\begin{document}
\begin{pspicture}[plotpoints=300](-1,-1)(11,7)
\psaxes[labels=none,ticks=none]{->}(0,0)(-1,-1)(10.5,6.5)[$t$,0][$v(t)$,90]
\psplot[algebraic,linecolor=blue,linewidth=2pt]{0}{10}{\f(x)}
\end{pspicture}
\end{document}

enter image description here

Related Question