\documentclass[a4paper,fleqn]{cas-sc}
\usepackage{booktabs,siunitx}
\usepackage{subfigure}
\usepackage{graphicx}
\begin{figure}%[!htb]
%\minipage{0.32\textwidth}
\begin{subfigure}%[b]%{1\textwidth}
\centering
%\fbox{
\includegraphics[scale=0.5]{FE_CDF2.eps}
\caption{FE grid }
\label{fig:(a)}
\end{subfigure}%
%\endminipage\hfill
%\minipage{0.32\textwidth}
\begin{subfigure}%[b]%{1\textwidth}
\centering
%\fbox{
\includegraphics[scale=0.5]{Daytown_CDF2.eps}
\caption{Daytown grid }
\label{fig:(b)}
\end{subfigure}
%\endminipage\hfill
%\minipage{0.32\textwidth}%
\begin{subfigure}%[b]%{1\textwidth}
\centering
%\fbox{
\includegraphics[scale=0.5]{EKPC_CDF2.eps}
\caption{EKPC grid }
\label{fig:(c)}
\end{subfigure}
%\endminipage
\caption{CDF of daily MAPE on FE, Daytown, and EKPC grids data of USA for our proposed FCRBM based model and existing models (AFC-ANN, Bi-level, MI-ANN). }
\label{fig_CDF_USA_Grid}
\end{figure}
\end{document}
答案1
使用适当宽度subfigures
和一些\hfill
命令:
\documentclass[a4paper,fleqn,demo]{cas-sc} % Remove the demo option in your real document.
\usepackage{natbib}
\usepackage{subcaption}
\begin{document}
\begin{figure}%
\begin{subfigure}[b]{0.3\linewidth}\centering
\includegraphics[width=\linewidth]{FE_CDF2.eps}
\caption{FE grid }
\label{fig:(a)}
\end{subfigure}
\hfill
\begin{subfigure}[b]{0.3\linewidth}
\includegraphics[width=\linewidth]{Daytown_CDF2.eps}
\caption{Daytown grid }
\label{fig:(b)}
\end{subfigure}
\hfill
\begin{subfigure}[b]{0.3\linewidth}
\includegraphics[width=\linewidth]{EKPC_CDF2.eps}
\caption{EKPC grid }
\label{fig:(c)}
\end{subfigure}
\caption{CDF of daily MAPE on FE, Daytown, and EKPC grids data of USA for our proposed FCRBM based model and existing models (AFC-ANN, Bi-level, MI-ANN). }
\label{fig_CDF_USA_Grid}
\end{figure}
\end{document}
附注:虽然文档内容不需要,但不包含包 natbib
会导致以下错误消息:! Undefined control sequence. \@begindocumenthook ...\@afterindentfalse \bibsep=0pt\gdef \bibfont {\fonts...
答案2
该subfigure
包已过时;无论如何,它的语法完全不同,并且需要命令\subfigure
而不是\begin{subfigure}
。
环境subfigure
由包提供subcaption
。
\documentclass[a4paper,fleqn]{cas-sc}
\usepackage{booktabs,siunitx,natbib}
\usepackage{subcaption}
\usepackage{graphicx}
\begin{document}
\begin{figure}[pos=!htbp]
\begin{subfigure}[b]{0.32\textwidth}
\includegraphics[width=\textwidth]{example-image}
\caption{FE grid}\label{fig:(a)}
\end{subfigure}\hfill
\begin{subfigure}[b]{0.32\textwidth}
\includegraphics[width=\textwidth]{example-image}
\caption{Daytown grid}\label{fig:(b)}
\end{subfigure}\hfill
\begin{subfigure}[b]{0.32\textwidth}
\includegraphics[width=\textwidth]{example-image}
\caption{EKPC grid}\label{fig:(c)}
\end{subfigure}
\caption{CDF of daily MAPE on FE, Daytown, and EKPC grids data of USA for our proposed FCRBM based model and existing models (AFC-ANN, Bi-level, MI-ANN).}
\label{fig_CDF_USA_Grid}
\end{figure}
\end{document}
请注意,该类需要不同的语法来指定图形的定位。
不要以空格结束标题。还请避免使用空格,scale
因为您将无法控制宽度;最好使用width
。