I am asking if there is a way so that I can empty the space between the sub figure, so that the figures has the maximum size.
I have attached the minimal example. and also the output.
thanks in advance
Code: Select all
\documentclass[a4paper]{report}
\usepackage{geometry}
\usepackage{graphicx}
\usepackage{subcaption}% donot put \usepackage{subfig}
\begin{document}
\begin{figure}[!ht]
\begin{subfigure}[b]{0.5\textwidth}
\includegraphics[width=\textwidth]{NH.png}
\caption{NH}
\label{fig:NH}
\end{subfigure}
\hspace{0.2mm} % add desired spacing between images, e. g. ~, \quad, \qquad etc.
%(or a blank line to force the subfigure onto a new line)
\begin{subfigure}[b]{0.5\textwidth}
\includegraphics[width=\textwidth]{SH.png}
\caption{SH}
\label{fig:SH}
\end{subfigure}
\end{figure}
\end{document}