LaTeX forum ⇒ Graphics, Figures & TablesOrientation of Figure and Caption Topic is solved

Information and discussion about graphics, figures & tables in LaTeX documents.
rbmoseki
Posts: 2
Joined: Sun May 21, 2023 7:53 pm

Orientation of Figure and Caption

Postby rbmoseki » Sun May 21, 2023 8:01 pm

Hi,

Can you please help me with getting my figure in the centre of the page and removing the space after my figure before the caption. The caption of the figure is way below my figure. below is my text:

\begin{figure}[h!]
\centering
\includegraphics[scale=1.2]{SIR.png}
\caption{This is my Caption.}
\end{figure}

Recommended reading 2021:

LaTeXguide.org • LaTeX-Cookbook.net
LaTeX Beginner's Guide LaTeX Cookbook
kaiserkarl13
Posts: 684
Joined: Tue Mar 25, 2008 5:02 pm

Orientation of Figure and Caption  Topic is solved

Postby kaiserkarl13 » Sun May 21, 2023 8:34 pm

If you want the figure in the center of the page (by itself), try using the "p" placement specifier. As for the gap before the caption, it could be that your image (which you didn't post) has whitespace around it; if so, you need to crop the PNG file. If that's not it, please post the image, along with another image showing what you think it should look like, and that will allow someone to figure out what you want to do.

rbmoseki
Posts: 2
Joined: Sun May 21, 2023 7:53 pm

Orientation of Figure and Caption

Postby rbmoseki » Mon May 22, 2023 9:09 pm

Thank you so much, indeed there was a lot of white space underneath


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 10 guests