Graphics, Figures & TablesOrientation of Figure and Caption

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

Orientation of Figure and Caption

Post by rbmoseki »

Hi,

Can you please help me with getting my figure in the center 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:

Code: Select all

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Orientation of Figure and Caption

Post by kaiserkarl13 »

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: 10
Joined: Sun May 21, 2023 7:53 pm

Orientation of Figure and Caption

Post by rbmoseki »

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