\usepackage{float}
with \begin{figure}[H]
for position, I have this problem\usepackage{float}
with \begin{figure}[H]
for position, I have this problemNEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
\begin{figure}[H]
is fundamentally bad. Don't use it. That causes bad page breaks and undesired white space because of the forced figure placement. Allow LaTeX to move the figures to optimal positions. The have reference numbers just because it's common in books that figures are somewhere near but not strictly here.\begin{figure}[!htbp]
instead, that's the most flexible placement near to the position in the code.NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p