Mathematica Fixing a Moving Point Animation Issue in Mathematica using Manipulate

  • Thread starter Thread starter hitfq
  • Start date Start date
  • Tags Tags
    Mathematica
Click For Summary
The issue with the moving point animation in Mathematica arises from the lack of reference points in the graphics, making the motion appear nonexistent. To visualize the movement, adding a frame or fixed axes can help. Using the command "Manipulate[ Graphics[Point[{t, -t^2/2}] /. {t -> a}, Frame -> True], {{a, 1}, 0, 10}]" allows for better observation of the point's movement. Additionally, setting a specific plot range enhances the visibility of the animation. Implementing these adjustments effectively resolves the initial problem.
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}]
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K