Message Boards Message Boards

0
|
2201 Views
|
2 Replies
|
2 Total Likes
View groups...
Share
Share this post:

[?] Reduce this vertical space in Grid?

Anonymous User
Anonymous User
Posted 7 years ago

The results I want are somewhere between two results I'm able to achieve. My first attempt:

testPlot[] := ListPlot[{0, 1, 2, 3, 4, 5, 6, 7, 8, 9}]
Grid[{{"Label1", testPlot[], testPlot[]}, {"Label2", testPlot[], testPlot[]}}, Frame -> All]

enter image description here

I like the vertical spacing, but I'd prefer larger images, making use of the unused space on the right side of the window.

For my second attempt, I change an option:

testPlot[] :=  ListPlot[{0, 1, 2, 3, 4, 5, 6, 7, 8, 9}, ImageSize -> Full]

enter image description here

Now the horizontal spacing is exactly what I want, but there's major unused vertical space between plots. How can I reduce that vertical space? Thank you.

POSTED BY: Anonymous User
2 Replies

Hi Joe,

you can change that relatively continuously depending on the size of your screen:

testPlot[] := ListPlot[{0, 1, 2, 3, 4, 5, 6, 7, 8, 9}, ImageSize -> 520]
Grid[{{"Label1", testPlot[], testPlot[]}, {"Label2", testPlot[], testPlot[]}}, Frame -> All]

enter image description here

Cheers,

Marco

POSTED BY: Marco Thiel
Anonymous User
Anonymous User
Posted 7 years ago

Thank you. That is better than any solution I had found.

POSTED BY: Anonymous User
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract