As per this, I tried using \minipage
with my \subfigure
, however to no avail. (My figures are still stacked vertically)
I even tried changing scale
to width=0.5\textwidth
...
What did I do wrong?
Brief working example:
Also uploaded here as a .zip file.
Sorry, I really don't know how to format stuff on here. So it looks messy.
\documentclass[a4paper,10pt]{article}
\usepackage{setspace}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{eps2pdf}
\usepackage{subfigure}
\usepackage{float}
\usepackage[super,numbers,sort&compress]{natbib}
\usepackage{color}
% \usepackage{underscore}
\usepackage{grrfile}
\usepackage{placeins}
\newcommand{\hilight}[1]{\colorbox{yellow}{#1}}
\renewcommand{\thefootnote}{\alph{footnote}}
\usepackage[paper=letterpaper,left=1.0in,right=1.0in,top=0.25in,bottom=1.0in,]{geometry}
\begin{document}
\begin{figure}[ht]
\centering
\begin{minipage}{0.45\textwidth}
\begin{subfigure}[Initial condition]{
\includegraphics[scale =0.25] {./pngs/profile_L_3lambda_max_1wl_0.png}
\label{fig:subfig1}
}
\end{subfigure}
\end{minipage}
\begin{minipage}{0.45\textwidth}
\begin{subfigure}[DFT]{
\includegraphics[scale =0.25] {./pngs/profile_L_3lambda_max_1wl_dft_0.png}
\label{fig:subfig2}
}\end{subfigure}
\end{minipage}
\begin{minipage}{0.45\textwidth}
\begin{subfigure}[DFT (corner)]{
\includegraphics[scale =0.25] {./pngs/profile_L_3lambda_max_1wl_dft_0_X.png}
\label{fig:subfig3}
}\end{subfigure}
\end{minipage}
\label{myfigure}
\caption{Initial condition, $L=3\lambda_{max}, \text{k}=1, G=0.333,S=100, M=35.1, \text{Pr=7.02}, E=0, Ra=0$}
\end{figure}
\begin{figure}
\centering
\begin{subfigure}[Initial condition]{
\includegraphics[scale =0.25] {./pngs/profile_L_3lambda_max_1wl_Rup.png}
\label{fig:subfig4}
}\quad
\end{subfigure}
\begin{subfigure}[DFT]{
\includegraphics[scale =0.25] {./pngs/profile_L_3lambda_max_1wl_dft_Rup.png}
\label{fig:subfig5}
}\end{subfigure}
\label{myfigure}
\caption{Rupture condition, , $L=3\lambda_{max}, \text{k}=1, G=0.333,S=100, M=35.1, \text{Pr=7.02}, E=0, Ra=0$}
\end{figure}
\end{document}
subfigure
package, a lot of folks prefer thesubcaption
package- would you be interested in seeing a solution using it? – cmhughes Aug 29 '12 at 18:28subfigure
package is "deprecated"? – dearN Aug 29 '12 at 18:31