Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

anim01.rst 1.1 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
  1. .. _anim01:
  2. (1) Animation of the sine function
  3. ----------------------------------
  4. Our first animation is not very ambitious: We wish to plot the sine
  5. function from 0-360 and take snap shots every 20. To get a smooth curve
  6. we must sample the function much more frequently; we settle on 10 times
  7. more frequently than the frame spacing. We place a bright red circle at
  8. the leading edge of the curve, and as we move forward in time (here,
  9. angles) we dim the older circles to a dark red color. We add a label
  10. that indicates the current angle value. Once the 18 frames are completed
  11. we convert them to a single animated GIF file.
  12. .. literalinclude:: /_verbatim/anim01.txt
  13. :language: bash
  14. Make sure you understand the purpose of all the steps in our script. In
  15. this case we did some trial-and-error to determine the exact values to
  16. use for the map projection, the region, the spacing around the frame,
  17. etc. so that the final result gave a reasonable layout. Do this planning
  18. on a single PostScript plot before running a lengthy animation script.
  19. .. figure:: /_images/anim01.*
  20. :width: 400 px
  21. :align: center
  22. Animation of a simple sine function.
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...