Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Vertically allign 3 figures in one page in latex

I’ve exported 3 figures from R studio (in .png). How can I vertically align them on one page using latex?
That’s my attempt

\documentclass[11pt,fleqn,a4paper]{article}
\usepackage{graphicx}
\usepackage{subfig}

\begin{document}

\begin{figure}[htp]

\subfloat[Germany, sectors C26 to C30]{%
  \includegraphics[clip,width=0.5\columnwidth]{Images/deu.png}%
}

\subfloat[Italy, sectors C29-C30]{%
  \includegraphics[clip,width=0.5\columnwidth]{Images/ITA.png}%
}
\subfloat[United States, sectors C29-C30]{%
  \includegraphics[clip,width=0.5\columnwidth]{Images/USA.png}%
}


\caption{Offshoring level. \\Source: Elaborated data from WIOT and SEA tables (2016).}

\end{figure}

\end{document}

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

To get your image one below each other, insert an empty line between each \subfloat. This empty line will insert a new paragraph:

\documentclass[11pt,fleqn,a4paper]{article}
\usepackage{graphicx}
\usepackage{subfig}

\begin{document}

\begin{figure}[htp]
\centering 

\subfloat[Germany, sectors C26 to C30]{%
  \includegraphics[clip,width=0.5\columnwidth]{example-image-duck}%
}

\subfloat[Italy, sectors C29-C30]{%
  \includegraphics[clip,width=0.5\columnwidth]{example-image-duck}%
}

\subfloat[United States, sectors C29-C30]{%
  \includegraphics[clip,width=0.5\columnwidth]{example-image-duck}%
}


\caption{Offshoring level. \\Source: Elaborated data from WIOT and SEA tables (2016).}

\end{figure}

\end{document}

enter image description here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading