添加标题并删除子浮点中的编号

添加标题并删除子浮点中的编号

我有这个 6x3 子浮点数,我想为每行添加垂直标题,为每列添加水平标题。我还想删除这些(a) (b) (c) ...标签,这样它就只有标题,就像我图中第一行的标题一样,而不是0.2 0.2 0.3(a) 0.2 (b) 0.2 (c) 0.3如果有人能告诉我如何做到这一点。

这是我的身材:

\begin{figure}
\centering
\subfloat[0.2]{\includegraphics[width=.32\linewidth {a.png}}\label{a}
\subfloat[0.2]{\includegraphics[width=.32\linewidth]{b.png}}\label{b}
\subfloat[0.3]{\includegraphics[width=.32\linewidth]{c.png}}\label{c}\\
\subfloat[0.5]{\includegraphics[width=.32\linewidth]{d.png}}\label{d}
\subfloat[0.4]{\includegraphics[width=.32\linewidth]{e.png}}\label{e}
\subfloat[0.6]{\includegraphics[width=.32\linewidth]{f.png}}\label{f}\\
\subfloat[0.5]{\includegraphics[width=.32\linewidth]{g.png}}\label{g}
\subfloat[0.5]{\includegraphics[width=.32\linewidth]{h.png}}\label{h}
\subfloat[0.7]{\includegraphics[width=.32\linewidth]{i.png}}\label{i}\\
\subfloat[0.5]{\includegraphics[width=.32\linewidth]{j.png}}\label{j}
\subfloat[0.6]{\includegraphics[width=.32\linewidth]{k.png}}\label{k}
\subfloat[0.7]{\includegraphics[width=.32\linewidth]{l.png}}\label{l}\\
\subfloat[0.5]{\includegraphics[width=.32\linewidth]{m.png}}\label{m}
\subfloat[0.6]{\includegraphics[width=.32\linewidth]{n.png}}\label{n}
\subfloat[0.7]{\includegraphics[width=.32\linewidth]{o.png}}\label{o}\\
\subfloat[0.5]{\includegraphics[width=.32\linewidth]{p.png}}\label{p}
\subfloat[0.6]{\includegraphics[width=.32\linewidth]{q.png}}\label{q}
\subfloat[0.7]{\includegraphics[width=.32\linewidth]{r.png}}\label{r}
\caption{results}
\label{figure1}
\end{figure}

编辑:

只是为了澄清我的最终结果应该是什么样的:

在此处输入图片描述

答案1

\subfloat 或 \subfigure 并没有什么神圣之处,甚至没有什么特别有用之处。

我不确定你用 \labels 的目的是什么。如果你不想让 (a) - (r) 出现,那么将 \ref{r} 扩展为 (r) 并不是特别有用。如果你想创建超链接,那么总是有 \hypertarget 和 \hyperlink。

\documentclass{memoir}
\usepackage{mwe}

\newlength{\tempdima}
\newcommand{\rowname}[1]% #1 = text
{\rotatebox{90}{\makebox[\tempdima][c]{\textbf{#1}}}}

\begin{document}
\centering%
\begin{figure}
\settoheight{\tempdima}{\includegraphics[width=.32\linewidth]{example-image-a}}%
\centering\begin{tabular}{@{}c@{ }c@{ }c@{ }c@{}}
&\textbf{Trial A} & \textbf{Trial B} & \textbf{Trial C} \\
\rowname{Exp 1}&
\includegraphics[width=.32\linewidth]{example-image-a}&
\includegraphics[width=.32\linewidth]{example-image-b}&
\includegraphics[width=.32\linewidth]{example-image-c}\\[-1ex]
&0.2 & 0.2 & 0.3 \\
\rowname{Exp 2}&
\includegraphics[width=.32\linewidth]{example-image-a}&
\includegraphics[width=.32\linewidth]{example-image-b}&
\includegraphics[width=.32\linewidth]{example-image-c}\\[-1ex]
&0.5 & 0.4 & 0.6 \\
\rowname{Exp 3}&
\includegraphics[width=.32\linewidth]{example-image-a}&
\includegraphics[width=.32\linewidth]{example-image-b}&
\includegraphics[width=.32\linewidth]{example-image-c}\\[-1ex]
&0.5 & 0.5 & 0.7 \\
\rowname{Exp 4}&
\includegraphics[width=.32\linewidth]{example-image-a}&
\includegraphics[width=.32\linewidth]{example-image-b}&
\includegraphics[width=.32\linewidth]{example-image-c}\\[-1ex]
&0.5 & 0.6 & 0.7 \\
\rowname{Exp 5}&
\includegraphics[width=.32\linewidth]{example-image-a}&
\includegraphics[width=.32\linewidth]{example-image-b}&
\includegraphics[width=.32\linewidth]{example-image-c}\\[-1ex]
&0.5 & 0.6 & 0.7 \\
\rowname{Exp 6}&
\includegraphics[width=.32\linewidth]{example-image-a}&
\includegraphics[width=.32\linewidth]{example-image-b}&
\includegraphics[width=.32\linewidth]{example-image-c}\\[-1ex]
&0.5 & 0.6 & 0.7
\end{tabular}
\caption{results}%
\label{figure1}
\end{figure}
\end{document}

表格图像

相关内容