summaryrefslogtreecommitdiff
path: root/gnuplot
diff options
context:
space:
mode:
authorDennis Kobert <dennis@kobert.dev>2019-12-01 01:58:10 +0100
committerDennis Kobert <dennis@kobert.dev>2019-12-01 01:58:10 +0100
commitaa98e4dba7d771bd1e9519442f830542cff2860c (patch)
treead6931bacca50621439ef4bc2d179a17074fb619 /gnuplot
parent94935f80fac8d1275142d73b1a6b6d6492cc8207 (diff)
Improve preformarce by calculating the hamilton oncemaster
Diffstat (limited to 'gnuplot')
-rw-r--r--gnuplot/anim2d.plt3
-rw-r--r--gnuplot/anim3d.plt4
2 files changed, 5 insertions, 2 deletions
diff --git a/gnuplot/anim2d.plt b/gnuplot/anim2d.plt
index 38b8d5a..f131c1f 100644
--- a/gnuplot/anim2d.plt
+++ b/gnuplot/anim2d.plt
@@ -8,7 +8,8 @@ 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
+ plot 'data' every ::ii::ii * states using 4:5:6 w points palette pointsize 2 pointtype 7, \
+ 'data' every ::1::ii * states using 4:5:6 w l palette lw 3
pause 0.1
}
diff --git a/gnuplot/anim3d.plt b/gnuplot/anim3d.plt
index 99cfe10..05d9f51 100644
--- a/gnuplot/anim3d.plt
+++ b/gnuplot/anim3d.plt
@@ -2,9 +2,11 @@ set view equal xyz
set parametric
set isosamples 34,34
+ii = start
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 using 1:2:3:6 w points palette pointsize 2 pointtype 7#, \
+ 'data' every ::ii - states::ii * states using 1:2:3:6 w points palette pointsize 1.2 pointtype 7, \
+ 'data' every ::1::ii * states using 1:2:3:6 w l palette
pause 0.1
}