I included a long plot in Overleaf into a new page. The problem is that the plot shows up in middle and I want to "shift it up". I have desperately tried all the tips in this link: Figure placed on a separate page is centered and not on top
For instance, I putted this in my preamble without any success:
\makeatletter
\setlength{\@fptop}{0pt}
\makeatother
This link: https://www.texfaq.org/FAQ-vertposfp explaining the things above did not help.
Minimal example:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\makeatletter
\setlength{@fptop}{0pt}
\makeatother
\begin{document}
\section{Introduction}
\begin{figure}[t!]
\includegraphics[scale=1]{Test_Figure.pdf}
\end{figure}
\end{document}


\rule{1cm}{3cm}or whatever size you need to show the problem. If I try withexample-imagethen as you specified a top float it comes at the top of that page, above Introduction. you presumably want to test a[p]float. changing the option to[p]it goes to page 2 at the top, as expected. – David Carlisle Apr 27 '21 at 16:46