这是我尝试过的。为了可重复性,我使用了[demo]
。我希望右侧的图能够整齐地放置,并且与左侧的图高度相同。
\documentclass{article}
\usepackage{caption,subcaption}
\usepackage[demo]{graphicx} % demo is just for the example
\begin{document}
\begin{figure}
\centering
\begin{subfigure}[b]{.45\textwidth}
\includegraphics[width=\textwidth,height=5cm]{/home/ayan/Programs/David_Parkinson/Reduced_Reshaped/Elbow.pdf}
%\caption{A tall figure}
\end{subfigure}\qquad
\begin{subfigure}[b]{.45\textwidth}
\begin{subfigure}[b]{.45\textwidth}
\includegraphics[width=\textwidth]{/home/ayan/Programs/David_Parkinson/Reduced_Reshaped/ML_Data/BIN_1/KMeans_Cluster_1_hist.pdf}
%\caption{}\label{}
\end{subfigure}
\begin{subfigure}[b]{.45\textwidth}
\includegraphics[width=\textwidth]{/home/ayan/Programs/David_Parkinson/Reduced_Reshaped/ML_Data/BIN_1/KMeans_Cluster_1_hist.pdf}
%\caption{}\label{}
\end{subfigure}
\begin{subfigure}[b]{.45\textwidth}
\includegraphics[width=\textwidth]{/home/ayan/Programs/David_Parkinson/Reduced_Reshaped/ML_Data/BIN_1/KMeans_Cluster_1_hist.pdf}
%\caption{}\label{}
\end{subfigure}
\begin{subfigure}[b]{.45\textwidth}
\includegraphics[width=\textwidth]{/home/ayan/Programs/David_Parkinson/Reduced_Reshaped/ML_Data/BIN_1/KMeans_Cluster_1_hist.pdf}
%\caption{}\label{}
\end{subfigure}
\end{subfigure}\qquad
\caption{The full caption}
\end{figure}
\end{document}
答案1
像这样?
\documentclass{article}
\usepackage{caption,subcaption}
\usepackage[demo]{graphicx}
\usepackage{tabularx}
\begin{document}
\begin{figure}
\centering
\begin{tabularx}{\linewidth}{XX}
\begin{subfigure}{\linewidth}
\includegraphics[width=\linewidth,height=5cm]{/home/ayan/Programs/David_Parkinson/Reduced_Reshaped/Elbow.pdf}
\caption{A tall figure}
\end{subfigure}
&
\begin{subfigure}{\linewidth}
\begin{subfigure}{0.48\linewidth}
\includegraphics[width=\textwidth]{/home/ayan/Programs/David_Parkinson/Reduced_Reshaped/ML_Data/BIN_1/KMeans_Cluster_1_hist.pdf}
\caption{}\label{}
\end{subfigure}\hfill
\begin{subfigure}{0.48\linewidth}
\includegraphics[width=\linewidth]{/home/ayan/Programs/David_Parkinson/Reduced_Reshaped/ML_Data/BIN_1/KMeans_Cluster_1_hist.pdf}
\caption{}\label{}
\end{subfigure}
\begin{subfigure}{0.48\linewidth}
\includegraphics[width=\linewidth]{/home/ayan/Programs/David_Parkinson/Reduced_Reshaped/ML_Data/BIN_1/KMeans_Cluster_1_hist.pdf}
\caption{}\label{}
\end{subfigure}\hfill
\begin{subfigure}{0.48\linewidth}
\includegraphics[width=\linewidth]{/home/ayan/Programs/David_Parkinson/Reduced_Reshaped/ML_Data/BIN_1/KMeans_Cluster_1_hist.pdf}
\caption{}\label{}
\end{subfigure}
\end{subfigure}
\end{tabularx}
\caption{The full caption}
\end{figure}
\end{document}
或者您希望让第一个子图像的高度等于右列中两个子图像的高度,就像我在给出的链接的评论中所做的那样?
答案2
根据上面@Zarko 的评论,我对其进行了修改以适合我的问题:
\documentclass{article}
\usepackage{caption,subcaption}
\usepackage[demo]{graphicx}
\usepackage{tabularx}
\begin{document}
\begin{figure}
\centering
\begin{tabularx}{\linewidth}{XX}
\begin{subfigure}{\linewidth}
\includegraphics[width=\linewidth,height=5cm]{/home/ayan/Programs/David_Parkinson/Reduced_Reshaped/Elbow.pdf}
%\caption{A tall figure}
\end{subfigure}
&
\begin{subfigure}{\linewidth}
\begin{subfigure}{0.48\linewidth}
\includegraphics[width=\textwidth, height=2.5cm]{/home/ayan/Programs/David_Parkinson/Reduced_Reshaped/ML_Data/BIN_1/KMeans_Cluster_1_hist.pdf}
%\caption{}\label{}
\end{subfigure}\hfill
\begin{subfigure}{0.48\linewidth}
\includegraphics[width=\linewidth, height=2.5cm]{/home/ayan/Programs/David_Parkinson/Reduced_Reshaped/ML_Data/BIN_1/KMeans_Cluster_1_hist.pdf}
%\caption{}\label{}
\end{subfigure}
\begin{subfigure}{0.48\linewidth}
\includegraphics[width=\linewidth, height=2.5cm]{/home/ayan/Programs/David_Parkinson/Reduced_Reshaped/ML_Data/BIN_1/KMeans_Cluster_1_hist.pdf}
%\caption{}\label{}
\end{subfigure}\hfill
\begin{subfigure}{0.48\linewidth}
\includegraphics[width=\linewidth, height=2.5cm]{/home/ayan/Programs/David_Parkinson/Reduced_Reshaped/ML_Data/BIN_1/KMeans_Cluster_1_hist.pdf}
%\caption{}\label{}
\end{subfigure}
\end{subfigure}
\end{tabularx}
\caption{The full caption}
\end{figure}
\end{document}