Message Boards Message Boards

GROUPS:

Show and Manipulate at the same time

Posted 8 months ago
893 Views
|
2 Replies
|
0 Total Likes
|

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?

2 Replies

How about

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

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

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}]
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