How do you make an animation with Mathematica?

  • Context: Mathematica 
  • Thread starter Thread starter Nusc
  • Start date Start date
  • Tags Tags
    Animation Mathematica
Click For Summary

Discussion Overview

The discussion revolves around creating animations in Mathematica, specifically focusing on generating animated plots using the Plot3D function. Participants share their attempts, solutions, and challenges related to the animation process.

Discussion Character

  • Homework-related
  • Technical explanation
  • Conceptual clarification

Main Points Raised

  • One participant inquires about how to create an animation with Mathematica, sharing their code that produces a column of identical images.
  • Another participant suggests collapsing the cell after generating the table of plots to view a single plot, mentioning a keyboard shortcut (CTRL-Y) that may help.
  • A participant asks for clarification on how to collapse the cell, indicating a need for more detailed instructions.
  • Another reply proposes double-clicking an image to generate an animated sequence from the plotted results.
  • A further clarification is provided on collapsing the cell, explaining the use of brackets and the visual indicators for expanded or collapsed states.
  • A participant reports success in generating the desired output but expresses dissatisfaction with the visual appearance of the plot, sharing their updated code and a command to adjust the viewpoint.

Areas of Agreement / Disagreement

Participants generally agree on the steps to create animations, but there are varying levels of understanding regarding specific functionalities and visual adjustments in Mathematica. No consensus is reached on the aesthetic quality of the plots.

Contextual Notes

Some participants may have different versions of Mathematica, which could affect the availability of certain features or commands. There is also a lack of clarity on the specific visual adjustments that can enhance the appearance of the plots.

Nusc
Messages
752
Reaction score
2

Homework Statement



How do you make an animation with Mathematica?

Homework Equations



Table[Plot3D[3Sech[(1/2)*(-t+x)]+12Sech[(1/2)*(-8t+2x)]+27Sech[(1/2)*(-27t+3x)],{x,0,10},{t,0,14},Axes->False,PlotRange->{0,10}],{t,0,9}] // Short

The Attempt at a Solution



My attempt above spits out a whole column of the same image. Do you know what's wrong?
 
Physics news on Phys.org
After you get the entire table of plots, you should be able to collapse the cell down so you see only one plot. Then select the plot and, I believe, hit CTRL-Y. It's been a while, but it does work.

I don't have Mathematica on my work computer so I'll have to do it when I get home tonight.
 
"collapse the cell down so you see only one plot."


How do you do that?
 
Try double clicking an image, it should generate an animated sequence based on the rest of your plotted results.
 
Nusc said:
"collapse the cell down so you see only one plot."


How do you do that?
On the far, right hand side of each cell there is a series of brackets that have a small triangle attached. If the triangle points down, the cell is expanded. If the triangle points up the cell is collapsed. For the table plot, you want to double click the farthest right bracket so that it looks like you have only one plot on the screen.

Here's a picture that shows what I am talking about:
http://www.atpm.com/10.02/images/atpo-28-mathematica.gif
 
Okay good. I got what I wanted:

\!\(Table[Plot3D[3\
Sech[1\/2\ \((\(-t\) + x)\)] + 12\ Sech[1\/2\ \((\(-8\)\ t + 2\ x)\)] +
27\ Sech[
1\/2\ \((\(-27\)\ t + 3\ x)\)], {x,
0, 60}, {t, 0, x}, PlotRange -> {{0, 60}, {0,
60}, {0, 2}}], {x, 0, 60}]\ // Short\)

However I'm not happy with the way it looks:

\!\(Plot3D[3\ Sech[1\/2\ \((\(-t\) +
x)\)] + 12\ Sech[1\/2\ \((\(-8\)\ t + 2\ x)\)] + 27\
Sech[1\/2\ \((\(-27\)\ t + 3\ x)\)], {x, 0, 10}, {t, 0, 14}]\)

Then

Show[%, ViewPoint -> {1.2, 1.2, 1.2}]
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 6 ·
Replies
6
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
5K