I have the following image: Produced from the following LaTeX code:
\begin{figure}[h!]
\centering
\begin{subfigure}[b]{0.6\textwidth}
\includegraphics[width=0.7\textwidth, trim=5cm 5cm 5cm 5cm]{images/det.pdf}
\caption{Deterministic algorithms}
\label{fig:fingonly1}
\end{subfigure}%
~ %add desired spacing between images, e. g. ~, \quad, \qquad etc.
%(or a blank line to force the subfigure onto a new line)
\begin{subfigure}[b]{0.6\textwidth}
\includegraphics[width=0.7\textwidth, trim=5cm 5cm 5cm 5cm]{images/pro.pdf}
\caption{Probabilistic algorithms}
\label{fig:fingonly2}
\end{subfigure}
\caption{Average positioning error for the non-dynamic indoor positioning system}\label{fig:rssi}
\end{figure}
I want to center the text with the image. any recommendations on how to fix this?
pgfplots
? if so, you could passtrim axis
options totikzpicture
, as in\begin{tikzpicture}[trim axis left,trim axis right]...\end{tikzpicture}
.