收集了几种并列和竖直放置图片的模板,备忘。
并列布置:
第一种:无统一大标题,独立小标题
代码:
\begin{figure}
\begin{minipage}[t]{0.5\linewidth}
\centering
\includegraphics[width=2.0in]{frame_count.jpg}
\caption{No.frame for video}
\label{frame}
\end{minipage}%
\begin{minipage}[t]{0.5\linewidth}
\centering
\includegraphics[width=1.8in]{label_count.jpg}
\caption{No.video for label}
\label{label}
\end{minipage}
\end{figure}
效果图:
第二种:统一大标题,各个图片带小标题
代码:
\begin{figure}
\centering
\subfigure[No.frame for video]{
%\label{fig:subfig:a} %% label for first subfigure
\includegraphics[width=1.5in]{frame_count.jpg}
}
\subfigure[No.video for label]{
%\label{fig:subfig:b} %% label for second subfigure
\includegraphics[width=1.5in]{label_count.jpg}
}
\caption{Distribution of the datasets}
%\label{fig:subfig} %% label for entire figure
\end{figure}
效果图:
竖直布置:
这里只列统一标题的代码,如果要独立的标题的直接按正常单一图片放置就好了
代码:
\begin{figure}
\centering
\subfigure[]{
\begin{minipage}[b]{0.5\textwidth}
\includegraphics[width=1\textwidth]{frame_count.jpg}
\end{minipage}
}
\subfigure[]{
\begin{minipage}[b]{0.5\textwidth}
\includegraphics[width=1\textwidth]{label_count.jpg}
\end{minipage}
}
\caption{Distribution of the datasets. (a)The number of frame for a video. (b)The number of video for a label.} \label{distribution:dataset}
\end{figure}
效果图:
PS:
可以在\subfigure[]
这句中的中括号里面填写小标题名称,如
\subfigure[The number of frame for a video.]
其他照旧,图片大小不合适还要慢慢调