答案1
例如,這可以透過tikz
套件和matrix
庫來實現。這是一張虛擬圖片,顯示與您的問題中類似的內容以及相應的結果。
% works with tikz v3.0.1a
\documentclass[border=2mm]{standalone}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{tikz}
\usetikzlibrary{
matrix,
}
% define size of rectangular pictures
\pgfmathsetlengthmacro{\Size}{25mm}
\begin{document}
%\begin{figure}
\begin{tikzpicture}[
Pic/.style={
minimum size=\Size,
inner sep=0pt,
% this is just to show something
% comment the two following lines or adjust them accordingly
draw=black!50,
fill=black!25,
},
]
\matrix [
% typeset nodes in math mode
matrix of math nodes,
% use a smaller font for the nodes
node font=\scriptsize,
% rotate all nodes in the first column
column 1/.append style={
every node/.append style={
rotate=90,
},
},
% set the separations of the columns and rows
row sep=2.5mm,
column sep=2.5mm,
] {
&[-2ex] N = 150 & N = 200 & N = 250 \\[-2ex]
t = 0 & \node [Pic] {};
& \node [Pic] {};
& \node [Pic] {}; \\
t = 100 & \node [Pic] {};
& \node [Pic] {};
& \node [Pic] {}; \\
t = 200 & \node [Pic] {};
& \node [Pic] {};
& \node [Pic] {}; \\
};
\end{tikzpicture}
% \caption{Just a dummy caption}
% \label{fig:dummy}
%\end{figure}
\end{document}
現在您只需將\node [Pic] {};
s 替換為node [Pic] {\includegraphics[width=\Size]{<pic name>}};
where<pic name>
是可以透過graphicx
套件找到的相應圖片名稱。希望我在程式碼中的註解足夠您可以自行修改大小和距離。
請注意,standalone
文檔類別不提供figure
環境,因此我對這些程式碼行進行了註解。
答案2
看看,這是否是您正在尋找的:
\documentclass{article}
\usepackage{array,graphicx}
\begin{document}
\begin{tabular}{c*{3}{>{\centering\arraybackslash}p{0.3\textwidth}}}
& $N=150$ & $N=150$ & $N=250$ \\
\rotatebox{90}{\qquad$t=0$}
& \includegraphics[width=\linewidth]{example-image-a}
& \includegraphics[width=\linewidth]{example-image-b}
& \includegraphics[width=\linewidth]{example-image-c} \\
\rotatebox{90}{\qquad$t=100$}
& \includegraphics[width=\linewidth]{example-image-a}
& \includegraphics[width=\linewidth]{example-image-b}
& \includegraphics[width=\linewidth]{example-image-c} \\
\rotatebox{90}{\qquad$t=200$}
& \includegraphics[width=\linewidth]{example-image-a}
& \includegraphics[width=\linewidth]{example-image-b}
& \includegraphics[width=\linewidth]{example-image-c} \\
\end{tabular}
\end{document}