Message Boards Message Boards

0
|
2089 Views
|
3 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Multiple graphics objects in the function Graphics?

Posted 2 years ago

The function Graphics works well with one single Graphcis object as the graphic primitive. However, I am not able to combine this with more graphic primitives in the same "Graphics" function. Ways around this problem?

POSTED BY: Pål Lillevold
3 Replies

Show takes the same options as Graphics, and they override the options of the single components:

flower = Import["ExampleData/coneflower.jpg", "Graphics"];
Show[{flower, Graphics[{Disk[{0, 1}, 100]}]}, ImageSize -> 500, 
 AspectRatio -> 2]
POSTED BY: Gianluca Gorni

Thank you so much, Gianluca, most helpful!

While the function Graphics has a very rich menu of choices (size, position, options, .....), this is not the case for Show. Accordingly, I have a follow up question if there is a way to display several Graphics objects with similar choices that Graphcis allows for.

POSTED BY: Pål Lillevold

The semicolon suppresses the output. Objects with Graphics head are combined with Show, not with Graphics:

flower = Import["ExampleData/coneflower.jpg", "Graphics"];
flower
Show[{flower, flower}]
Show[{flower, Graphics[{Disk[{0, 1}, 100]}]}]
POSTED BY: Gianluca Gorni
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