Consider the following example:
\documentclass{article}
\usepackage{pstricks-add}
\usepackage{booktabs}
\psset{
unit = 0.7,
dimen = middle,
ticks = none,
labels = none
}
\newcommand*\pind[2]{%
\psset{linecolor = red}
\psline(#1,0)(#1,#2)
\psline(!#1 0.2 sub #2)(!#1 0.2 add #2)
}
\newcommand*\enkeltobservationer{%
\begin{pspicture}(-0.5,-0.2)(5.9,6.3)
\psaxes{->}(0,0)(-0.2,-0.2)(5.4,5.5)[\small{$x$},0][\small{$h(x)$},90]
\pind{0.5}{3}
\pind{1.0}{5}
\pind{1.5}{3}
\pind{2.0}{3}
\pind{2.5}{4}
\pind{3.0}{2}
\pind{3.5}{5}
\pind{4.0}{1}
\pind{4.5}{4}
\pind{5.0}{2}
\end{pspicture}%
}
\newcommand*\soejle[2]{%
\psset{fillcolor = red}
\psframe[fillstyle = solid](!#1 0.5 sub 0)(#1,#2)
}
\newcommand*\intervaller{%
\begin{pspicture}(-0.5,-0.2)(5.9,6.3)
\psaxes{->}(0,0)(-0.2,-0.2)(5.4,5.5)[\small{$x$},0][\small{$h(x)$},90]
\soejle{0.5}{3}
\soejle{1.0}{5}
\soejle{1.5}{3}
\soejle{2.0}{3}
\soejle{2.5}{4}
\soejle{3.0}{2}
\soejle{3.5}{5}
\soejle{4.0}{1}
\soejle{4.5}{4}
\soejle{5.0}{2}
\end{pspicture}%
}
\begin{document}
\begin{table}
\centering
\begin{tabular}{l c c c}
\toprule
Begreb &
Forkortelse &
Enkeltobservationer &
Intervaller \\
\midrule
Hyppighed &
$h(x)$ &
\enkeltobservationer &
\intervaller \\
\bottomrule
\end{tabular}
\end{table}
\end{document}
I would like to vertically center Hyppighed
and $h(x)$
relative to the figures; how do I do that?
\clipbox
being already defined. But take a look at this, it might help: tex.stackexchange.com/a/46390/18228