I am trying to generate three subfigures using the subfig package. However, instead of my subfigures being aligned horizontally, they are placed vertically. There's a MWE at the end of my post that demonstrates my problem.
I appreciate any help I can get.
Anders
Code: Select all
\documentclass{report}
\usepackage{subfig}
\usepackage{graphicx}
\begin{document}
\begin{figure}[H]
\centering
\subfloat[Kohler illumination + white light. This image is a good representation of the sample.]{
\label{subfig:correct}
\includegraphics[width=0.3\textwidth]{correct} }
\subfloat[Kohler illumination + not white light: The colors, brightness, and contrast are way off.]{
\label{subfig:notwhitelight}
\includegraphics[width=0.3\textwidth]{wronglight} }
\subfloat[Not kohler illumination + white light. Notice the black spot suddenly appearing (lower left corner) that has nothing to do with the sample]{
\label{subfig:nonkohler}
\includegraphics[width=0.3\textwidth]{nonkohler}}
\caption{Three subfigures}
\label{kohler}
\end{figure}
\end{document}