Referring to this link, Placement of images in row using subfigure
when I use the same code of the tabular format for my two-column page format, it cross the first column width. I have already used \columnwidth
to fit it within single column, but it doesn't work.
\begin{figure} \centering \begin{tabular}[c]{cccc} \begin{subfigure}[b]{0.24\columnwidth} \includegraphics[width=\textwidth]{figure/E_field_513_THz_X_normal.eps} \caption{E field at 513 THz x-normal direction.} \end{subfigure}& \begin{subfigure}[b]{0.24\columnwidth} \includegraphics[width=\textwidth]{figure/E_field_513_THz_Y_normal.eps} \caption{E field at 513 THz in y-normal direction.} \end{subfigure}& \begin{subfigure}[b]{0.24\columnwidth} \includegraphics[width=\textwidth]{figure/H_field_513_THz_Y_normal.eps} \caption{H field at 513 THz y-normal direction.} \end{subfigure}& \begin{subfigure}[b]{0.24\columnwidth} \includegraphics[width=\textwidth]{figure/H_field_513_THz_X_normal.eps} \caption{H field at 513 THz x-normal direction.} \end{subfigure} \end{tabular} \caption{The electric and magnetic fields pattern at 513 THz.} \label{E_and_H_field_at_513}\end{figure}
Can someone help?