diff options
author | Dennis Kobert <dennis@kobert.dev> | 2019-11-30 19:24:20 +0100 |
---|---|---|
committer | Dennis Kobert <dennis@kobert.dev> | 2019-11-30 19:24:20 +0100 |
commit | 94935f80fac8d1275142d73b1a6b6d6492cc8207 (patch) | |
tree | 837c34f9db9426e74daefa8ba7e11b96ba527484 /gnuplot | |
parent | e1172e94602f4cf003392409d9543d17c31881dc (diff) |
Animate tow level systems
Diffstat (limited to 'gnuplot')
-rw-r--r-- | gnuplot/anim2d.plt | 15 | ||||
-rw-r--r-- | gnuplot/anim3d.plt (renamed from gnuplot/animation.plt) | 2 |
2 files changed, 16 insertions, 1 deletions
diff --git a/gnuplot/anim2d.plt b/gnuplot/anim2d.plt new file mode 100644 index 0000000..38b8d5a --- /dev/null +++ b/gnuplot/anim2d.plt @@ -0,0 +1,15 @@ +set size square +set xrange [-1.1:1.1] +set yrange [-1.1:1.1] +set xlabel "Re(V)" +set ylabel "Im(V)" +set xzeroaxis +set yzeroaxis +set object circle at 0,0 size 1 + +do for [ii=start:end] { + plot 'data' every ::1::ii * states using 4:5:6 w points palette pointsize 2 pointtype 7 + pause 0.1 +} + +pause mouse close diff --git a/gnuplot/animation.plt b/gnuplot/anim3d.plt index 6228a53..99cfe10 100644 --- a/gnuplot/animation.plt +++ b/gnuplot/anim3d.plt @@ -4,7 +4,7 @@ set isosamples 34,34 do for [ii=start:end] { splot cos(u)*cos(v),cos(u)*sin(v),sin(u) w l lc rgb "#42a4f5", \ - 'data' every ::1::ii * states w points palette pointsize 2 pointtype 7#, \ + 'data' every ::1::ii * states using 1:2:3:6 w points palette pointsize 2 pointtype 7#, \ pause 0.1 } |