我如何在单列中显示此图像,以便在中心连续显示两列纸张

我如何在单列中显示此图像,以便在中心连续显示两列纸张

在此处输入图片描述

我尝试了以下

\begin{center}
   \begin{figure}
    \centering
    \includegraphics[width =11cm, height = 5cm]{confusion-matrix.png}
    \caption{Confusion matrix
    }
    \label{fig:my_label}
\end{figure} 
\end{center}

但似乎不起作用

答案1

在此处输入图片描述

\documentclass[twocolumn]{article}

\usepackage{subcaption,graphicx}
\usepackage{lipsum}

\begin{document}

\lipsum[1]
%first three figures
\begin{figure}[t]
  \centering
  \begin{subfigure}{.3\columnwidth}
    \centering
    \includegraphics[width=\linewidth]{example-image-a}
    \caption{Level 1}
  \end{subfigure}%
  \hfill
  \begin{subfigure}{.3\columnwidth}
    \centering
    \includegraphics[width=\linewidth]{example-image-b}
    \caption{Level 2}
  \end{subfigure}%
  \hfill
  \begin{subfigure}{.3\columnwidth}
    \centering
    \includegraphics[width=\linewidth]{example-image-c}
    \caption{Level 3}
  \end{subfigure}
  \caption{some caption text}
\end{figure}
%second single figure
\begin{figure}[t]
    \centering
    \begin{subfigure}{\columnwidth}
        \centering
        \includegraphics[width=\linewidth]{example-image-a}
        \caption{Level 1}
    \end{subfigure}%
    \caption{some caption text}
\end{figure}
\lipsum[2-7]

\end{document}

相关内容