如何并排增加两个子图像的尺寸

如何并排增加两个子图像的尺寸

我有以下代码:

\usepackage{graphicx}
\usepackage{cite}
\usepackage{subfig}
\begin{document}
\begin{figure}[H]
\begin{minipage}{.5\linewidth}
  \centering
  \subfloat[horizontal mic pairs]{\label{horizontal mic pair 
    combinations}\includegraphics[width=0.81\linewidth] 
    {Text/Images/hyp3_arr1_hor.png}}
  \end{minipage}%
  \begin{minipage}{.5\linewidth}
  \centering
  \subfloat[vertical mic pairs]{\label{Vertical mic pair 
    combinations}\includegraphics[width=0.80\linewidth] 
    {Text/Images/hyp3_arr1_ver.png}}
  \end{minipage}
  \caption{Mean and standard deviation of absolute difference of 
    geometrical and estimated azimuth and elevation angles for 
    horizontal and vertical microphone pair combinations of 
    microphone array 1 respectively, (a) - (b).}
  \label{fig:hyp3_arr1_hor_ver}
\end{figure}
\end{document}

我面临的问题是这些数字太小了。我想增加图像的大小。有人能帮我修改这段代码吗?

答案1

像这样?

在此处输入图片描述

(红线表示文本边框)

\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{subfig}

%---------------- show page layout. don't use in a real document!
\usepackage{showframe}
\renewcommand\ShowFrameLinethickness{0.15pt}
\renewcommand*\ShowFrameColor{\color{red}}
%---------------------------------------------------------------%

\begin{document}
     \begin{figure}[htb]
     \centering
\subfloat[horizontal mic pairs
          \label{horizontal mic pair combinations}]%
  {\includegraphics[width=.4\linewidth]{Text/Images/hyp3_arr1_hor.png}}
\hfil
\subfloat[vertical mic pairs
          \label{Vertical mic pair combinations}]%
    {\includegraphics[width=.4\linewidth]{Text/Images/hyp3_arr1_ver.png}}
\caption{Mean and standard deviation of absolute difference of geometrical and estimated azimuth and elevation angles for horizontal and vertical microphone pair combinations of microphone array 1 respectively, (a) - (b).}
\label{fig:hyp3_arr1_hor_ver}
    \end{figure}

编辑:

在上面姆韦(最小工作示例)删除了minipages(它们是多余的)并更正了所包含图像的宽度。您可以稍微放大图像宽度,例如放大到width=0.495;-)(width=0.5图像之间的间隙将消失),或减小到您想要的大小。

相关内容