Message Boards Message Boards

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

Show and Manipulate at the same time

Posted 4 years ago

Suppose I have two graphics:

gr1=Some graphics;
gr2=Manipulate[ Some other graphics, {c,0,1}]

i.e. Manipulate c on graphics gr2. Then I want to show the two graphics, with the controls I added with Manipulate, at the same time.

I tried

Manipulate[
 Show[gr1, gr2], {c, 0, 1}]

But gr2 isn't shown this way, and

Show[gr1, gr2]

with gr2 as defined at the beggining of the post isn't working too.

Any help?

POSTED BY: Ehud Behar
2 Replies

This seems to work

gr1 = Graphics[Line[{{0, 0}, {1, 1}}]];
gr2[x_] := Graphics[Circle[{1/2, 1/2}, x]]

Manipulate[
 Show[gr1, gr2[c]],
 {c, 0, 1}]
POSTED BY: Hans Dolhaine

How about

Manipulate[Show[gr1, some other graphics], {c, 0, 1}]

I don't think you can insert a Manipulate inside a Show.

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