I have some plots that I want to group together into one figure as subfigures using subfloat. I want to align them as two per row but it seems they are too big (Overfull \hbox). Nonetheless I want them to be on one row and be centered which means they should have the same distance to the left and right border of the sheet.
The following code is a stripped down version of one of my figures and exhibits the problem.
\documentclass[a4paper,10pt]{scrreprt}
\usepackage{pgfplots}
\usepackage{subfig}
\usepackage{blindtext}
\begin{document}
\begin{figure}
\centering
\subfloat[]{
\begin{tikzpicture}
\begin{axis}[]
\end{axis}
\end{tikzpicture}
}
\subfloat[]{
\begin{tikzpicture}
\begin{axis}[]
\end{axis}
\end{tikzpicture}
}
\end{figure}
\blindtext
\end{document}
As you can see in the resulting page, the figures are much closer to the right border than to the left.
I don't seem to be able to move them in any way.
As you can see I tried \centering
and I also have tried \subfloatrow
to no avail.
\textwidth
using\resizebox{\textwidth}{!}{ }
(inside thefigure
environment), IMHO it would look better that way. Do you really want to place it outside the margin?