TransWikia.com

How can I arrange my plots using subfloat?

TeX - LaTeX Asked on November 30, 2020

old

usepackage{graphicx}
usepackage[]{subfig}

begin{figure}[hbt!]
    centering
    subfloat[label{Airline:a}]{includegraphics[width=0.46textwidth]{a.eps}} qquad
    subfloat[label{Airline:b}]{includegraphics[width=0.46textwidth]{b.eps}} 
    subfloat[label{Airline:c}]{makebox[linewidth]{includegraphics[width=1.3textwidth]{c.eps}}} 
    caption{Descriptive Statistics}
    label{Airline}
end{figure}

I used to arrange three plots in the above way, but now my plots are in different shapes and I want to arrange them in the way below. Can I do so with the least change of the LaTex code?

new

One Answer

You could use two minipage environments:

enter image description here

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

begin{document}
begin{figure}[hbt!]
    centering 
    begin{minipage}{0.5textwidth}
    subfloat[label{Airline:a}]{includegraphics[width=0.98textwidth]{example-image-1x1}} 
    end{minipage}%
    begin{minipage}{0.5textwidth}
    subfloat[label{Airline:b}]{includegraphics[width=0.98textwidth]{example-image-b}}  
    subfloat[label{Airline:c}]{includegraphics[width=0.98textwidth]{example-image-c}} 
    end{minipage}
    caption{Descriptive Statistics}
    label{Airline}
end{figure}

end{document}

Correct answer by leandriis on November 30, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP