MHB How can I fix unwanted vertical space after figures in $\LaTeX$?

AI Thread Summary
Unwanted vertical space after figures in LaTeX can be caused by improper image cropping rather than the scaling factor or the use of \centerline. The user initially faced issues with extra space despite using appropriate scaling for images. Negative vertical space adjustments were ineffective in resolving the problem. Ultimately, the solution was to ensure images were cropped correctly to eliminate the excess space. This experience highlights the importance of proper image formatting in LaTeX documents.
Jameson
Insights Author
Gold Member
MHB
Messages
4,533
Reaction score
13
Hello everyone.

I'm typing up a report in $\LaTeX$ and I'm having trouble with some unwanted space. Here is what it looks like with the extra space marked by the reddish rectangles.

2mha1vt.png


The images themselves don't have excessive vertical space below them.

2m5au6b.png


On the previous page I have included figures that don't have any vertical space issues.
2rpfk0y.png


To include these I'm using the following code:

Code:
\centerline{\includegraphics[scale=.5]{Retail_Sales_dividebypop.png}}

I've read online that \centerline isn't advised to use but it's worked fine for me up until this point. I've tried using negative vspace but that doesn't do anything either.

The only thing I can think of is that the scaling adds more space. In second set of figures they are scaled lower, as you can see by this code:

Code:
\centerline{\includegraphics[scale=.1]{nasdaq_graph.png}}

Maybe the .1 scale factor leaves less room than .5? Any insight or help would be much appreciated!
 
Physics news on Phys.org
[SOLVED]! I wasn't cropping the images correctly, leaving extra vertical space. I might delete this thread later but am considering keeping just to have an example thread on vertical spacing. :o
 

Similar threads

Replies
3
Views
2K
Replies
2
Views
5K
Replies
1
Views
2K
Replies
1
Views
3K
Replies
1
Views
3K
Replies
1
Views
990
Replies
4
Views
3K
Back
Top