I am using the following lines to include images to my latex file but it always puts the image at the top of the page irrespective of whether I call this evrironment.
I have used \usepackage{graphicx} as from so many online instructions:
\begin{figure}
\begin{center}
\includegraphics[scale = 0.4]{vectorAB.png}
\hspace{0.2in}
\includegraphics[scale = 0.5]{berryAB.png}
\caption{Phase transformation due to magnetic flux in inaccessible region due to either traversal for two quantun states from either of the sides, or by looping around the flux line, even when $\vec{B}=0$}
\end{center}
\end{figure}
What exactly am I missing here?
\begin{figure}[htbp!]wherehfor here,tfor top,bfor bottom,pfor page. For example, you can use it as\begin{figure}[h!]to place it where it is first called. – fromthebeeland Jul 26 '21 at 14:02centerenvironment infigure: it adds unwanted vertical spacing to the vertical spacing of figure. Use the\centeringdirective instead. – Bernard Jul 26 '21 at 14:44