title: Figure in Latex is not centering despite using \centering
body: <p>I am very new to LaTex and am trying to center a figure.</p>
  <p>I have tried to use the package <code>float</code> using both <code>[h]</code> and <code>[H]</code>, I have tried to add <code>\centering</code> and I have tried to wrap the image in <code>\begin{center} \end{centering}</code> but nothing seems to work.</p>
  <p>My full code is as such</p>
  <pre><code>\documentclass{article}
  \usepackage[utf8]{inputenc}
  \usepackage{graphicx}
  \usepackage{float}
  \graphicspath{ {images/} }
  
  \title{Dissertation}
  \author{GC}
  \date{\today}
  
  
  \begin{document}
  
  \maketitle
  
  \section{Introduction}
  \begin{figure}[H]
      \centering
      \includegraphics{my_grades}
      \caption{grades plot}
      \label{fig:grade}
  \end{figure}
  
  This figure does not seem to want to centre
  
  \end{document}
  </code></pre>
  <p>This figure on the compiled document looks as such. If someone could help me understand why this doesn't want to move that would be great:</p>
  <p><a href="https://i.stack.imgur.com/rNc45.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/rNc45.jpg" alt="image" /></a></p>