Tag Info

New answers tagged

2

This is an incredibly annoying issue that led me to write my own package at one point. While we're dealing with a grid of images of equal sizes, this is easily solvable (see answers of Sjoerd C. de Vries and Alexei Boulbitch). Unfortunately, we (myself and the topic-starter, at least) often want GraphicsGrid to behave more like Grid. Compare, for example, ...


0

Try this: s0 = Plot[Sin[x], {x, -10, 10}, Frame -> True, FrameLabel -> {"x", "y"}, ImageSize -> 550]; E0 = Export["test.jpg", s0]; img = Import["test.jpg"]; S1 = GraphicsGrid[{{img, img}, {img, img}}, Spacings -> {10, -120}] which should look like the following: Play with the values of the Spacings. Have fun!


2

The trick is to give the GraphicsGrid the same aspect ratio as the tightly packed collection of graphics would have. GraphicsGrid[{{img, img}, {img, img}}, Spacings -> 0, AspectRatio -> 1/GoldenRatio ]


3

Another approach (from this answer) is to re-set the value of the option ImageSizeMultipliers to {1.,1.} : image = ImageResize[Import["ExampleData/lena.tif"], 250]; image2 = ImageResize[ExampleData[{"TestImage", "Mandrill"}], 150]; With the default settings image image2 Grid[{{"abcd", image, image2}}] gives After evaluating ...



Top 50 recent answers are included