0

This question already has an answer here:

I am trying to reduce the gap between the subfigure and the subcaption.

\captionsetup[subfigure]{labelformat=empty, aboveskip=10pt}

but the line of code above does not work.

\begin{figure}
\captionsetup[subfigure]{labelformat=empty, aboveskip=10pt}
    \centering
    \subfloat[Ground Truth]{{\includegraphics[width=\textwidth]{ood-ms/ood-1-gt.png} }}
    \\ \vspace{-1\baselineskip}
    \subfloat[Recurrent Neural Network]{{\includegraphics[width=\textwidth]{ood-ms/ood-1-rnn.png} }}
    \\ \vspace{-1\baselineskip}
    \subfloat[]{{\includegraphics[width=\textwidth]{ood-ms/ood-1-vrnn.png} }}
    \\ \vspace{-0.5\baselineskip} \noindent\rule{14cm}{0.4pt}
    \subfloat[]{{\includegraphics[width=\textwidth]{ood-ms/ood-3-gt.png} }}
    \\ \vspace{-1\baselineskip}
    \subfloat[]{{\includegraphics[width=\textwidth]{ood-ms/ood-3-rnn.png} }}
    \\ \vspace{-1\baselineskip}
    \subfloat[]{{\includegraphics[width=\textwidth]{ood-ms/ood-3-vrnn.png} }}
    \\ \vspace{-0.5\baselineskip} \noindent\rule{14cm}{0.4pt}
        \subfloat[]{{\includegraphics[width=\textwidth]{ood-ms/ood-1-gt.png} }}
    \\ \vspace{-1\baselineskip}
    \subfloat[]{{\includegraphics[width=\textwidth]{ood-ms/ood-1-rnn.png} }}
    \\ \vspace{-1\baselineskip}
    \subfloat[]{{\includegraphics[width=\textwidth]{ood-ms/ood-1-vrnn.png} }}
    \\ \vspace{-0.5\baselineskip} \noindent\rule{14cm}{0.4pt}
    \subfloat[]{{\includegraphics[width=\textwidth]{ood-ms/ood-3-gt.png} }}
    \\ \vspace{-1\baselineskip}
    \subfloat[]{{\includegraphics[width=\textwidth]{ood-ms/ood-3-rnn.png} }}
    \\ \vspace{-1\baselineskip}
    \subfloat[]{{\includegraphics[width=\textwidth]{ood-ms/ood-3-vrnn.png} }}
    \\ \vspace{-1\baselineskip}
    \caption{}
    \label{fig:ood}
\end{figure}

enter image description here

marked as duplicate by Zarko, user36296, Community Dec 27 '17 at 22:18

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – user36296 Dec 27 '17 at 21:21
  • Could you post a full compilable document? A link to the graphic files, or at least their size? – Bernard Dec 27 '17 at 21:21
  • What is the difference to your earlier question? tex.stackexchange.com/questions/407534/… – user36296 Dec 27 '17 at 21:24
  • 1
    @samcarter, this is the very same question. it seems that op is not satisfied with my answer :-(, so ask it again instead to try explain, what the answer should be improved. – Zarko Dec 27 '17 at 22:00

Browse other questions tagged or ask your own question.