Message Boards Message Boards

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

How to adjust the blank space in GraphicsRow?

Posted 2 years ago

Hello, I wrote these codes:

GraphicsRow[
 Table[GraphicsRow[{"H", 2, 3}, ImageSize -> 30 i, 
   ImageMargins -> -1], {i, 1, 3}], Frame -> All, Spacings -> 0]

The result is: enter image description here I felt there is too much blank between the frame and the text and number. Is there a way to make the blank smaller?

POSTED BY: Zhenyu Zeng
2 Replies

Use AspectRatio:

GraphicsRow[
 Table[GraphicsRow[{"H", 2, 3}, ImageSize -> 30 i, 
   AspectRatio -> 1/i], {i, 1, 3}], Frame -> All]

You can fine tune the ratio.

enter image description here Regards,

Neil

POSTED BY: Neil Singer
Posted 2 years ago

Hello, Thanks for your reply. You solution is a good idea.

POSTED BY: Zhenyu Zeng
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