An example of the height-time graph of an object thrown upward vertically.
\documentclass[pstricks,border=24pt]{standalone}
\usepackage{pst-plot}
\pstVerb
{
/U 20 def
/G -10 def
}
\psset{yunit=.5cm}
\usepackage{siunitx}
\begin{document}
\begin{pspicture}(5,21)
\psaxes[Dy=5](0,0)(4.5,21.5)[$t$ {[\si{\s}]},0][$h$ {[\si{\m}]},90]
\psplot[algebraic,linecolor=blue]{0}{4}{U*x+G/2*x^2}
\end{pspicture}
\end{document}

In this example, the object is thrown at an initial speed 20 meter per second vertically upward under the influence of earth gravity of 10 meter per second squared.
Just for fun!
Compile with pdflatex -shell-escape animation.tex.
% This file name is animation.tex
\documentclass[preview,border=12pt]{standalone}
\usepackage{filecontents}
\begin{filecontents*}{frames.tex}
\documentclass[pstricks,border=24pt]{standalone}
\usepackage{pst-plot}
\pstVerb
{
/U 20 def
/G -10 def
}
\def\h(#1){U*#1+G/2*#1^2}
\psset{yunit=.5cm}
\usepackage{siunitx}
\begin{document}
\multido{\n=.0+.4}{11}{%
\begin{pspicture}(5,21)
\psaxes[Dy=5](0,0)(4.5,21.5)[$t$ {[\si{\s}]},0][$h$ {[\si{\m}]},90]
\psplot[algebraic,linecolor=blue]{0}{4}{\h(x)}
\psline[linestyle=dashed,linecolor=gray](\n,0)(*{\n} {\h(x)})(0,0|*{\n} {\h(x)})
\pscircle*[linecolor=red](0,0|*{\n} {\h(x)}){3pt}
\end{pspicture}}
\end{document}
\end{filecontents*}
\usepackage{animate,pgffor}
\foreach \compiler/\ext in {latex/tex,dvips/dvi,ps2pdf/ps}{\immediate\write18{\compiler\space frames.\ext}}
\begin{document}
\animategraphics[controls,autoplay,loop,scale=1]{1}{frames}{}{}
\end{document}
