Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ep:labs:061:contents:tasks:ex6 [2019/09/27 06:38]
andreea.alistar created
— (current)
Line 1: Line 1:
-==== 06. [10p] Animations ==== 
  
-Datafile: ​ {{:​ep:​labs:​animations.txt|}} 
- 
-  * Create a script that animates a trajectory. Set a circle in the centre as a green filled circle. 
-  * **Hint:** Check the code from “Tutorial 04. Animations” and adjust. 
- 
-<​solution -hidden> 
-<code bash> 
-reset 
- 
-# Plot setting ​ 
-# ------------------ 
-set xrange [-1:1] 
-set yrange [-1:1] 
- 
-set xlabel "​x"​ font ", 18" 
-set ylabel "​y"​ font ", 18" 
-set ylabel "​z"​ font ", 18" 
- 
-unset key 
- 
-set pointsize 2                          # symbol size 
-set style line 2 lc rgb '#​0060ad'​ pt 7   # circle 
- 
-set object circle at first 0,0 size scr 0.01 fillcolor rgb '​green'​ fillstyle solid 
- 
-do for [ii=1:3762] { 
-   title = sprintf ("Step = %d",​ii) 
-   set title title 
-   plot '​data0.txt'​ using 2:3  every ::ii::ii linestyle 2 
-   pause 0.02 
-} 
-</​code>​ 
-</​solution>​ 
ep/labs/061/contents/tasks/ex6.1569555531.txt.gz · Last modified: 2019/09/27 06:38 by andreea.alistar
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0