Der letzte Post heute, denke ich

Ich versuche eine Tabelle neben ein Bild zu packen. Gelesen hab ich viel (wirklich) und probiert habe ich mindestens genauso viel, aber es funktioniert einfach nicht.
Ich habe eine Tabelle, welche ich mit PGFPlotsTables erzeuge. Daneben ein Bild. Beide sind unterschiedlich groß und haben ein Caption. Die beiden Caption sollen ebeneinander stehen, das Bild vertikal zentriert sein.
TTTTTT TTTTTT TTTTTT BBB TTTTTT BBB TTTTTT BBB TTTTTT TTTTTT Caption Caption
\documentclass[listof=totocnumbered, bibliography=totoc, twoside,12pt, headsepline, footsepline, cleardoublepage=current, chapterprefix,headings=normal]{scrbook} \usepackage{pgf} \usepackage{tikz} \usepackage{pgfplots} \usepackage{pgfplotstable} \begin{document} \begin{figure}[ht] \centering \begin{minipage}[b]{0.45\textwidth} \centering \pgfplotstabletypeset[ every even row/.style={ before row={\rowcolor[gray]{0.9}}}, every head row/.style={ before row=\toprule,after row=\midrule}, every last row/.style={ after row=\bottomrule}, ]{./chapter/ch4/rawdata.data} \captionof{table}[Raw Data for KDD Example]{Raw Data, Output in TPD\footnotemark, Efficiency in \%} \label{tab:rawdata} \end{minipage}\hfill \begin{minipage}[b]{0.45\textwidth} \centering \begin{tikzpicture} \begin{axis}[ xlabel=Output $\lbrack TPD \rbrack$, ylabel=Efficiency $\lbrack \% \rbrack$, xmin=0, ymin=94] \addplot[only marks] table[x index=1,y index=2] {./chapter/ch4/rawdata.data}; \end{axis} \end{tikzpicture} \captionof{figure}{Scatterplot of the raw Data} \label{fig:rawdata} \end{minipage} \end{figure}\footnotetext{Tonnage Per Day} \end{document}
Vielleicht hat jemand eine Idee.
Grüße und Danke noch mal
Edit:
Wenn mich nicht alles täuscht, wird es mit dem folgenden Konstrukt zentriert:
\begin{figure}[ht] \centering \fbox{ \begin{minipage}[b][13cm]{0.45\textwidth} \centering \pgfplotstabletypeset[ every even row/.style={ before row={\rowcolor[gray]{0.9}}}, every head row/.style={ before row=\toprule,after row=\midrule}, every last row/.style={ after row=\bottomrule}, ]{./chapter/ch4/rawdata.data} \captionof{table}[Raw Data for KDD Example]{Raw Data, Output in TPD\footnotemark, Efficiency in \%} \label{tab:rawdata} \end{minipage}} \hfill \fbox{ \begin{minipage}[b][13cm]{0.45\textwidth} %\centering \fbox{ \begin{minipage}[t][11cm][c]{.45\textwidth} \begin{tikzpicture} \begin{axis}[ xlabel=Output $\lbrack TPD \rbrack$, ylabel=Efficiency $\lbrack \% \rbrack$, xmin=0, ymin=94]s \addplot[only marks] table[x index=1,y index=2] {./chapter/ch4/rawdata.data}; \end{axis} \end{tikzpicture}\end{minipage}} \captionof{figure}{Scatterplot of the raw Data} \label{fig:rawdata} \end{minipage}} \end{figure}\footnotetext{Tonnage Per Day}
Gibt es eine Möglichkeit die Höhe der Minipages variabel zu gestalten so das es passt? Ich habe bestimmt 5 anläufe gebraucht bis ich die richtigen Höhen hatte. Die innerste Minipage ist nun so hoch wie die Tabelle und somit ist das Bild zentriert ...
Edit: Was jetzt noch nicht geht ist die Referenzierung. Trotz \label(tab:rawdatatab} und \label{fig:rawdatafig} bekomme ich einmal Figure 1.1 (statt table 1.1) und einmal Figure 1.3 (was stimmt). Wieso ist die Tabelle keine Tabelle?