diff options
| author | 2026-11-11 22:28:13 +0000 | |
|---|---|---|
| committer | 2026-11-11 22:47:34 +0000 | |
| commit | cb070b2d3f2b6e241e3be1b7e0eeb90fc755255f (patch) | |
| tree | c7d90c0abe9533c87d51b5196871846855efa1ba /motion.gnuplot | |
| download | thesis-master.tar.gz | |
Diffstat (limited to 'motion.gnuplot')
| -rw-r--r-- | motion.gnuplot | 149 |
1 files changed, 149 insertions, 0 deletions
diff --git a/motion.gnuplot b/motion.gnuplot new file mode 100644 index 0000000..05b92c3 --- /dev/null +++ b/motion.gnuplot | |||
| @@ -0,0 +1,149 @@ | |||
| 1 | # -*- Gnuplot -*- | ||
| 2 | set datafile separator comma | ||
| 3 | set key outside | ||
| 4 | set grid | ||
| 5 | set term pngcairo size 1400,900 enhanced font "Arial,12" | ||
| 6 | |||
| 7 | csv = "motion.csv" | ||
| 8 | |||
| 9 | # ------------------------------------------------------------ | ||
| 10 | # 1. Траектория XY | ||
| 11 | # ------------------------------------------------------------ | ||
| 12 | |||
| 13 | set output "plot_xy.png" | ||
| 14 | set title "XY trajectory" | ||
| 15 | set xlabel "X, mm" | ||
| 16 | set ylabel "Y, mm" | ||
| 17 | set size ratio -1 | ||
| 18 | |||
| 19 | plot csv using 3:4 with lines title "trajectory" | ||
| 20 | |||
| 21 | # ------------------------------------------------------------ | ||
| 22 | # 2. Скорость вдоль траектории | ||
| 23 | # ------------------------------------------------------------ | ||
| 24 | |||
| 25 | set output "plot_velocity.png" | ||
| 26 | set title "Path velocity" | ||
| 27 | set xlabel "t, s" | ||
| 28 | set ylabel "v, mm/s" | ||
| 29 | set autoscale | ||
| 30 | set size noratio | ||
| 31 | |||
| 32 | plot csv using 1:5 with lines title "v" | ||
| 33 | |||
| 34 | # ------------------------------------------------------------ | ||
| 35 | # 3. Тангенциальное ускорение | ||
| 36 | # ------------------------------------------------------------ | ||
| 37 | |||
| 38 | set output "plot_tangential_acceleration.png" | ||
| 39 | set title "Tangential acceleration" | ||
| 40 | set xlabel "t, s" | ||
| 41 | set ylabel "a_t, mm/s^2" | ||
| 42 | |||
| 43 | plot csv using 1:6 with lines title "a_t" | ||
| 44 | |||
| 45 | # ------------------------------------------------------------ | ||
| 46 | # 4. Нормальное ускорение | ||
| 47 | # ------------------------------------------------------------ | ||
| 48 | |||
| 49 | set output "plot_normal_acceleration.png" | ||
| 50 | set title "Normal acceleration" | ||
| 51 | set xlabel "t, s" | ||
| 52 | set ylabel "a_n, mm/s^2" | ||
| 53 | |||
| 54 | plot csv using 1:9 with lines title "a_n" | ||
| 55 | |||
| 56 | # ------------------------------------------------------------ | ||
| 57 | # 5. Полное ускорение | ||
| 58 | # ------------------------------------------------------------ | ||
| 59 | |||
| 60 | set output "plot_acceleration_abs.png" | ||
| 61 | set title "Acceleration magnitude" | ||
| 62 | set xlabel "t, s" | ||
| 63 | set ylabel "|a|, mm/s^2" | ||
| 64 | |||
| 65 | plot csv using 1:10 with lines title "|a|" | ||
| 66 | |||
| 67 | # ------------------------------------------------------------ | ||
| 68 | # 6. Тангенциальный рывок | ||
| 69 | # ------------------------------------------------------------ | ||
| 70 | |||
| 71 | set output "plot_tangential_jerk.png" | ||
| 72 | set title "Tangential jerk" | ||
| 73 | set xlabel "t, s" | ||
| 74 | set ylabel "j_t, mm/s^3" | ||
| 75 | |||
| 76 | plot csv using 1:7 with lines title "j_t" | ||
| 77 | |||
| 78 | # ------------------------------------------------------------ | ||
| 79 | # 7. Полный векторный рывок | ||
| 80 | # ------------------------------------------------------------ | ||
| 81 | |||
| 82 | set output "plot_jerk_abs.png" | ||
| 83 | set title "Jerk magnitude" | ||
| 84 | set xlabel "t, s" | ||
| 85 | set ylabel "|j|, mm/s^3" | ||
| 86 | |||
| 87 | plot csv using 1:11 with lines title "|j|" | ||
| 88 | |||
| 89 | # ------------------------------------------------------------ | ||
| 90 | # 8. Осевые скорости | ||
| 91 | # ------------------------------------------------------------ | ||
| 92 | |||
| 93 | set output "plot_axis_velocity.png" | ||
| 94 | set title "Axis velocities" | ||
| 95 | set xlabel "t, s" | ||
| 96 | set ylabel "velocity, mm/s" | ||
| 97 | |||
| 98 | plot csv using 1:12 with lines title "v_x", \ | ||
| 99 | csv using 1:13 with lines title "v_y" | ||
| 100 | |||
| 101 | # ------------------------------------------------------------ | ||
| 102 | # 9. Осевые ускорения | ||
| 103 | # ------------------------------------------------------------ | ||
| 104 | |||
| 105 | set output "plot_axis_acceleration.png" | ||
| 106 | set title "Axis accelerations" | ||
| 107 | set xlabel "t, s" | ||
| 108 | set ylabel "acceleration, mm/s^2" | ||
| 109 | |||
| 110 | plot csv using 1:14 with lines title "a_x", \ | ||
| 111 | csv using 1:15 with lines title "a_y" | ||
| 112 | |||
| 113 | # ------------------------------------------------------------ | ||
| 114 | # 10. Осевые рывки | ||
| 115 | # ------------------------------------------------------------ | ||
| 116 | |||
| 117 | set output "plot_axis_jerk.png" | ||
| 118 | set title "Axis jerks" | ||
| 119 | set xlabel "t, s" | ||
| 120 | set ylabel "jerk, mm/s^3" | ||
| 121 | |||
| 122 | plot csv using 1:16 with lines title "j_x", \ | ||
| 123 | csv using 1:17 with lines title "j_y" | ||
| 124 | |||
| 125 | # ------------------------------------------------------------ | ||
| 126 | # 11. Состояние лазера | ||
| 127 | # ------------------------------------------------------------ | ||
| 128 | |||
| 129 | set output "plot_laser.png" | ||
| 130 | set title "Laser state" | ||
| 131 | set xlabel "t, s" | ||
| 132 | set ylabel "laser_on" | ||
| 133 | |||
| 134 | set yrange [-0.2:1.2] | ||
| 135 | |||
| 136 | plot csv using 1:22 with steps title "laser_on" | ||
| 137 | |||
| 138 | # ------------------------------------------------------------ | ||
| 139 | # 12. Индекс блока | ||
| 140 | # ------------------------------------------------------------ | ||
| 141 | |||
| 142 | set output "plot_block_index.png" | ||
| 143 | set title "Motion block index" | ||
| 144 | set xlabel "t, s" | ||
| 145 | set ylabel "block_index" | ||
| 146 | |||
| 147 | set autoscale y | ||
| 148 | |||
| 149 | plot csv using 1:23 with steps title "block_index" | ||
