适合(垂直描绘)图像,并在下方显示标题

适合(垂直描绘)图像,并在下方显示标题

所以我有这个代码:

     \begin{figure}[H]
\centering
\includegraphics[height=\textheight, width=\textwidth]{similar_waveforms_filtered_and_cut_new}  
\caption{Seiemic traces for events studied in this project with picks made at station DE02 - the closest station to the locations determined.}
\label{similar_waveforms}  
\end{figure}

我正在尝试“最佳地适应”我已旋转的图像,以便它垂直显示。当我使用 height=\textheight、width=\textwidth 时,我的标题出现在脚注下方 - 有没有办法纠正这个问题?我已附上一张图片以供参考地震波。 非常感谢

答案1

正如我在评论中提到的:

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

%---------------- show page layout. don't use in a real document!
\usepackage{showframe}
\renewcommand\ShowFrameLinethickness{0.15pt}
\renewcommand*\ShowFrameColor{\color{red}}
%---------------------------------------------------------------%

\begin{document}
     \begin{figure}[htbp]
\centering
\includegraphics[height=\dimexpr\textheight-3\baselineskip, % <---
                 width=\textwidth,
                 keepaspectio]%
                {similar_waveforms_filtered_and_cut_new}
\caption{Seiemic traces for events studied in this project with picks made at station DE02 - the closest station to the locations determined.}
\label{similar_waveforms}
\end{figure}
\end{document}

在此处输入图片描述

相关内容