and the layout changes as I move from 1 to 2. The figures have precisely the same dimensions:
$ pdfinfo overlay1.pdf
Creator: Matplotlib v3.7.1, https://matplotlib.org
Producer: Matplotlib pdf backend v3.7.1
CreationDate: Thu May 23 10:26:39 2024 EDT
Custom Metadata: no
Metadata Stream: no
Tagged: no
UserProperties: no
Suspects: no
Form: none
JavaScript: no
Pages: 1
Encrypted: no
Page size: 460.8 x 345.6 pts
Page rot: 0
File size: 94729 bytes
Optimized: no
PDF version: 1.4
$ pdfinfo overlay2.pdf
Creator: Matplotlib v3.7.1, https://matplotlib.org
Producer: Matplotlib pdf backend v3.7.1
CreationDate: Thu May 23 10:26:38 2024 EDT
Custom Metadata: no
Metadata Stream: no
Tagged: no
UserProperties: no
Suspects: no
Form: none
JavaScript: no
Pages: 1
Encrypted: no
Page size: 460.8 x 345.6 pts
Page rot: 0
File size: 96186 bytes
Optimized: no
PDF version: 1.4
Is there something obvious that I'm doing wrong here?
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
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