Im a Mathematica newbie. Can someone tell me how to watch the progress of a plot. For example say I want to watch the curve Exp[-x] when x progresses from 0 to 5. How could I do that?
Asked
Active
Viewed 935 times
4
m_goldberg
- 107,779
- 16
- 103
- 257
Saheer
- 61
- 1
2 Answers
7
try this hack
Dynamic[Plot[Exp[-x], {x, 0, a}, PlotRange -> {{0, 5}, {-.1, 1.1}}]]
Do[a = i; Pause[.1], {i, 0.1, 5, .1}]

Nasser
- 143,286
- 11
- 154
- 359
-
question about how to achieve the same effect: http://mathematica.stackexchange.com/q/84325/27539 – glS Sep 07 '16 at 20:46
1
Building on the previous procedural 2 liner posted by Nassar, perhaps this functional approach is what you mean? For more information, take a look at "Animate the Zeta Function" in Documentation.
Animate[
Dynamic[
Plot[Exp[-x], {x, 0, i}, PlotRange -> {{0, 5}, {-.1, 1.1}}]
]
, {i, 0, 5}
]
LibertyTrooper
- 321
- 1
- 8
Animate[Plot[Sin[a x], {x, -Pi, Pi}], {a, 1, 10}]for this. – Nasser Nov 28 '13 at 02:25Manipulate[ Plot[Exp[-x], {x, 0, a}, PlotRange -> {{0, 5}, {0, 1}}], {a, 0.001, 5}]? The use of the wordMonitoris confusing to us old hacks. :) – Michael E2 Nov 28 '13 at 02:35