Fixing a Moving Point Animation Issue in Mathematica using Manipulate

  • Context: Mathematica 
  • Thread starter Thread starter hitfq
  • Start date Start date
  • Tags Tags
    Mathematica
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 4K views
hitfq
Messages
2
Reaction score
0
I want to make an animation of a moving point using the command below, but the point doesn't move, how can I make it move using Manipulate? Thank you.

Manipulate[ Graphics[Point[{t , - t^2/2}] /. {t -> a}], {{a, 1}, 0, 10}]
 
Physics news on Phys.org
The point does move. There is just nothing else in the image to let you see the motion. Try

Manipulate[ Graphics[Point[{t, -t^2/2}] /. {t -> a}, Frame -> True], {{a, 1}, 0, 10}]

in order to see that the point does actually move.
 
or, in addition to, add some fixed axis:
Manipulate[
Graphics[Point[{t, -t^2/2}] /. {t -> a}, Frame -> True,
PlotRange -> {{-10, 10}, {-20, 10}}], {{a, 1}, 0, 10}]