I am trying to make a two column figure of set of subfigures using subfloat
. My problem is that the figure appears in one column only and
the rest of the figure is not displayed as shown in the following figure
this is my code :
\documentclass[journal]{IEEEtran}
\usepackage{graphicx}
\usepackage{subfloat}
\usepackage{subfig}
\usepackage{algorithmic}
\begin{document}
\begin{figure}
\centering
\subfloat[Tree-2]{\includegraphics[scale=0.45]{img1.png}}\label{img1}
\subfloat[Tree-4]{\includegraphics[scale=0.45]{img2.png}}\label{img2}\\
\subfloat[Tree-6]{\includegraphics[scale=0.45]{img3.png}}\label{img3}
\subfloat[Tree-10]{\includegraphics[scale=0.45]{img4.png}}\label{img4}\\
\subfloat[Tree-15]{\includegraphics[scale=0.45]{img5.png}}\label{img5}
\subfloat[Tree-20]{\includegraphics[scale=0.45]{img6.png}}\label{img6}\\
\caption{confusion matrix.}
\label{fig:confusion}
\end{figure}
\end{document}
Best Answer
Alternatively to my above comment:
If you use a double-column format like
IEEEtran
, you might want to use thefigure*
environment instead of thefigure
environment.figure
only occupies one column.figure*
spans both.