Fixing a Moving Point Animation Issue in Mathematica using Manipulate

  • Context: Mathematica 
  • Thread starter Thread starter hitfq
  • Start date Start date
  • Tags Tags
    Mathematica
Click For Summary
SUMMARY

The discussion focuses on resolving an issue with animating a moving point in Mathematica using the Manipulate function. The original command provided by the user did not visually demonstrate the point's movement due to the absence of reference elements in the graphics. The solution involves adding a frame and fixed axes to the graphics, which allows users to observe the point's motion effectively. The corrected commands include the use of Frame and PlotRange options to enhance visibility.

PREREQUISITES
  • Familiarity with Mathematica's Manipulate function
  • Understanding of basic graphics commands in Mathematica
  • Knowledge of coordinate systems and plotting in Mathematica
  • Experience with function definitions and substitutions in Mathematica
NEXT STEPS
  • Explore advanced graphics options in Mathematica
  • Learn about dynamic interactivity in Mathematica using Manipulate
  • Investigate the use of PlotRange for better visualizations
  • Study the implementation of animations in Mathematica
USEFUL FOR

Mathematica users, educators creating interactive visualizations, and anyone interested in enhancing their skills in graphical animations within Mathematica.

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 5 ·
Replies
5
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K