Group Abstract Group Abstract

Message Boards Message Boards

1
|
7.9K Views
|
3 Replies
|
4 Total Likes
View groups...
Share
Share this post:

[?] Put 2 different plots inside a manipulation?

Posted 9 years ago
POSTED BY: Mike Luntz
3 Replies
POSTED BY: Gianluca Gorni
Posted 9 years ago
POSTED BY: Mike Luntz

For this particular example a 2D slider works quite well:

Manipulate[
 Plot[{Norm[p] Sin[2 \[Pi] t + ArcTan[p]], 
   Norm[p] Sin[2 \[Pi] t + ArcTan[p]]}, {t, 0, 1}, 
  PlotRange -> {{0, 1}, {-3, 3}}],
 {{p, {0, 0}}, {-2, -2}, {2, 2}}]

A variation:

Manipulate[
 Row[{Plot[{Norm[p] Sin[2 \[Pi] t + ArcTan[p]], 
     Norm[p] Sin[2 \[Pi] t + ArcTan[p]]}, {t, 0, 1}, 
    PlotRange -> {{0, 1}, {-3, 3}}],
   Graphics[Locator[Dynamic@p], PlotRange -> 2, Frame -> True]}],
 {{p, {0, 0}}, {-2, -2}, {2, 2}, ControlType -> None}]
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