Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Let's say I have two manipulated plots:

Manipulate[Plot[Sin[a x], {x, 0, Pi}], {a, 0, 10}]
Manipulate[Plot[Cos[b x], {x, 0, Pi}], {b, 0, 10}]

How can I create a new plot that combines these two and is updated dynamically by each of them? Can I somehow use Show[]?

Of course I could create a unified manipulator, but in reality these are a handful of conceptually separate problems with lots of sliders each and I'd hate to duplicate them all.

share|improve this question
up vote 5 down vote accepted

This does what you want.

Manipulate[plots = Plot[Sin[a x], {x, 0, Pi}], {a, 0, 10}] 
Manipulate[plotc = Plot[Cos[b x], {x, 0, Pi}], {b, 0, 10}]
Show[plots, plotc] // Dynamic
share|improve this answer
OK good. Although Row[] seems a bit redundant here. :) – nccc Oct 22 '12 at 18:58
Good point - I've edited out the Row. – Stephen Luttrell Oct 22 '12 at 22:32
Stripping off the braces too might leave on only the necessary. :P – nccc Oct 23 '12 at 8:24
Braces stripped, and the comma as well! – Stephen Luttrell Oct 24 '12 at 13:41

The question is not very clearly posed but may be Panel is what you are looking for.

Panel[Manipulate[Plot[Sin[a x], {x, 0, Pi}], {{a, 2}, 0, 10}]
      Manipulate[Plot[Cos[b x], {x, 0, Pi}], {{b, 2}, 0, 10}], 
      FrameMargins -> 0]

enter image description here

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.