I am having trouble combining images using GraphicsGrid. My question is similar to Too much whitespace in a GraphicsGrid containing Legended Plots but it seems more complicated because I want to have one image centered above two other images for which I use SpanFromLeft
(perhaps not the right tool?).
Can anyone explain how I should pick the image sizes and aspect ratios so that they are roughly the same for every individual plot and with as little white space between the plots as possible.
The closest I could get was:
imageSize = 600;
GraphicsGrid[{{ListPlot[RandomReal[{0, 1}, {10, 2}],
ImageSize -> imageSize*Sqrt[2], AspectRatio -> 1/GoldenRatio],
SpanFromLeft}, {ListPlot[RandomReal[{0, 1}, {10, 2}],
ImageSize -> imageSize, AspectRatio -> 1/GoldenRatio],
ListPlot[RandomReal[{0, 1}, {10, 2}], ImageSize -> imageSize,
AspectRatio -> 1/GoldenRatio]}}, ImageSize -> 1000
, AspectRatio -> 1/GoldenRatio
]
I have no idea why I would need to multiply by Sqrt[2] in the top plot to get a similarly sized image as the others. It probably has to do with me combining two cells using SpanFromLeft.
GraphicsGrid
? If you simply useGrid
, it works perfectly as expected:imageSize = 300; Grid[{{ListPlot[RandomReal[{0, 1}, {10, 2}], ImageSize -> imageSize], SpanFromLeft}, {ListPlot[RandomReal[{0, 1}, {10, 2}], ImageSize -> imageSize], ListPlot[RandomReal[{0, 1}, {10, 2}], ImageSize -> imageSize]}}]
$\endgroup$