答案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>}};
的<pic name>
相应图片名称graphicx
。希望我在代码中的注释足够让您自己修改大小和距离。
请注意,standalone
documentclass 没有提供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}