- #1
- 908
- 572
- TL;DR Summary
- Use slider to move coupled markers in two or more plots, without triggering recalc of curves.
Let's say we have a rectangular plot of two curves X(t) and Y(t); and next to it we have a parametric plot of (X(t) , Y(t)).
Now we want to add a slider that can control markers on both plots, so that the slider ( = ts) moves two markers X(ts) and Y(ts) across the rectangular plot and at the same time another linked marker at [X(ts),Y(ts)] travels along the parametric curve in the other plot.
Also, we don't want the curves themselves to be dynamic, i.e. we don't want recalculation of the curves when the slider is moved.
How can we achieve this in Mathematica? One issue I found is that it won't allow us to Show[] a dynamic and static plot combined, which rules out one approach that I tried.
Now we want to add a slider that can control markers on both plots, so that the slider ( = ts) moves two markers X(ts) and Y(ts) across the rectangular plot and at the same time another linked marker at [X(ts),Y(ts)] travels along the parametric curve in the other plot.
Also, we don't want the curves themselves to be dynamic, i.e. we don't want recalculation of the curves when the slider is moved.
How can we achieve this in Mathematica? One issue I found is that it won't allow us to Show[] a dynamic and static plot combined, which rules out one approach that I tried.