在 LaTeX 中绘制相关矩阵 (pdf)

在 LaTeX 中绘制相关矩阵 (pdf)

好吧,放弃了……

我需要绘制一个与附图完全相同的相关矩阵。我有 15 张 PDF 格式的图片,但问题是要在 LaTeX 中将这些图片绘制在对角线上。我需要使用 LaTeX,而且只能使用 LaTeX。不过我确实知道如何使用其他程序进行绘图。有什么建议吗?

在此处输入图片描述

更新:

感谢您的建议。我只是想知道是否有办法裁剪和剪辑图像,因为我尝试绘制相关矩阵成功了,但现在数字和标签之间的差距很大,太小了。这是我尝试做的:

\begin{tabular}{ccccc}
   \includegraphics[trim=3cm 7cm 0cm 4cm,clip=true, totalheight=0.1\textheight]{fig/histplt_2.pdf}&
     \includegraphics[trim=3cm 7cm 0cm 5cm,clip=true, totalheight=0.1\textheight]{fig/histplt_2.pdf}&
  \includegraphics[trim=3cm 7cm 0cm 5cm,clip=true, totalheight=0.1\textheight]{fig/histplt_2.pdf}&
  \includegraphics[trim=3cm 7cm 0cm 5cm,clip=true, totalheight=0.1\textheight]{fig/histplt_2.pdf}&
  \includegraphics[trim=3cm 7cm 0cm 5cm,clip=true, totalheight=0.1\textheight]{fig/histplt_2.pdf}\\
&  \includegraphics[trim=3cm 7cm 0cm 5cm,clip=true, totalheight=0.1\textheight]{fig/histplt_2.pdf}&
  \includegraphics[trim=3cm 7cm 0cm 5cm,clip=true, totalheight=0.1\textheight]{fig/histplt_2.pdf}&
  \includegraphics[trim=3cm 7cm 0cm 5cm,clip=true, totalheight=0.1\textheight]{fig/histplt_2.pdf}&
  \includegraphics[trim=3cm 7cm 0cm 5cm,clip=true, totalheight=0.1\textheight]{fig/histplt_2.pdf}\\
&&  \includegraphics[trim=3cm 7cm 0cm 5cm,clip=true, totalheight=0.1\textheight]{fig/histplt_2.pdf}&
  \includegraphics[trim=3cm 7cm 0cm 5cm,clip=true, totalheight=0.1\textheight]{fig/histplt_2.pdf}&
  \includegraphics[trim=3cm 7cm 0cm 5cm,clip=true, totalheight=0.1\textheight]{fig/histplt_2.pdf}\\
&&&  \includegraphics[trim=3cm 7cm 0cm 5cm,clip=true, totalheight=0.1\textheight]{fig/histplt_2.pdf}&
  \includegraphics[trim=3cm 7cm 0cm 5cm,clip=true, totalheight=0.1\textheight]{fig/histplt_2.pdf}\\
&&&&  \includegraphics[trim=3cm 7cm 0cm 5cm,clip=true, totalheight=0.1\textheight]{fig/histplt_2.pdf}
\end{tabular}

结果是:

在此处输入图片描述

答案1

使用tabular似乎是最简单的方法。适当的尺寸留给你。

\documentclass[twoside]{article}
\usepackage[demo]{graphicx}

\begin{document}

\begin{tabular}{ccccc}
   \includegraphics[width=0.15\textwidth]{fig/main.pdf}&
     \includegraphics[width=0.15\textwidth]{fig/main.pdf}&
  \includegraphics[width=0.15\textwidth]{fig/main.pdf}&
  \includegraphics[width=0.15\textwidth]{fig/main.pdf}&
  \includegraphics[width=0.15\textwidth]{fig/main.pdf}\\
&  \includegraphics[width=0.15\textwidth]{fig/main.pdf}&
  \includegraphics[width=0.15\textwidth]{fig/main.pdf}&
  \includegraphics[width=0.15\textwidth]{fig/main.pdf}&
  \includegraphics[width=0.15\textwidth]{fig/main.pdf}\\
&&  \includegraphics[width=0.15\textwidth]{fig/main.pdf}&
  \includegraphics[width=0.15\textwidth]{fig/main.pdf}&
  \includegraphics[width=0.15\textwidth]{fig/main.pdf}\\
&&&  \includegraphics[width=0.15\textwidth]{fig/main.pdf}&
  \includegraphics[width=0.15\textwidth]{fig/main.pdf}\\
&&&&  \includegraphics[width=0.15\textwidth]{fig/main.pdf}
\end{tabular}

\end{document}

在此处输入图片描述

相关内容