Message Boards Message Boards

0
|
1246 Views
|
5 Replies
|
5 Total Likes
View groups...
Share
Share this post:

Does GraphicsColumn support non-default item-height? How?

Anonymous User
Anonymous User
Posted 6 years ago

3rd item in "Details and Options":

GraphicsColumn will by default make all items the same height....

Is there a non-default alternative? How to make a GraphicsColumn with non-uniform item-height?

POSTED BY: Anonymous User
5 Replies

Joe,

I just realized that did not directly answer your question. Here is the layout you wanted. I'm sure it can be done programmatically but this is a start:

GraphicsColumn[Table[Graphics[Disk[], ImageSize -> 10 i], {i, 1, 5}], 
 Alignment -> Left, Frame -> All, 
 Spacings -> {10, {-25, -25, -15, -5, 5 , 5}}]

Regards,

Neil

POSTED BY: Neil Singer
Anonymous User
Anonymous User
Posted 6 years ago

Thanks very much. I had missed the docs about "Spacings" until you drew my attention to them. It looks like that is what I needed.

POSTED BY: Anonymous User

Joe,

While the default is equal spacing based on the largest item, use Spacings to customize your spacing:

GraphicsColumn[Table[Graphics[Disk[], ImageSize -> 10 i], {i, 1, 5}], 
 Alignment -> Left, Frame -> All, 
 Spacings -> {{0, 200}, {-40, 0, 0, 50, 0, 0}}]

This puts no extra room on the left, 200 points on the right. moves the first item up 40 and the space between the 3rd and 4th item has 50 points added to it. The Spacings options are extensive so you can review the docs for it.

Example Results:

enter image description here

Regards,

Neil

POSTED BY: Neil Singer

Joe,

Set the ImageSize separately for each graphic item in the column. See the example with the different size disks:

GraphicsColumn[Table[Graphics[Disk[], ImageSize -> 10 i], {i, 1, 5}],  Alignment -> Left, Frame -> All]

Regards,

Neil

POSTED BY: Neil Singer
Anonymous User
Anonymous User
Posted 6 years ago

Thanks, but that is not the result I meant to describe. To see the result I want, evaluate this:

Column[Table[Graphics[Disk[], ImageSize -> 10 i], {i, 1, 5}], 
 Alignment -> Left, Frame -> All]

I am wondering whether GraphicsColumn can do that.

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