diff options
author | justanothercatgirl <sotov@twistea.su> | 2024-12-02 16:25:59 +0300 |
---|---|---|
committer | justanothercatgirl <sotov@twistea.su> | 2024-12-02 16:25:59 +0300 |
commit | 3fd86ca01c1d2b0e6e8ffe46de12d6e68054a217 (patch) | |
tree | 4670a617978e1c1a6e348d8c0b59ced106fd4e0a /106/plots2.gp | |
parent | 1e4e6f1e06d51712954579b89dc0a7e2c298667e (diff) | |
parent | 17c1a6895263eb31bdfb8859cb5ebc7255dae23c (diff) |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to '106/plots2.gp')
-rw-r--r-- | 106/plots2.gp | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/106/plots2.gp b/106/plots2.gp new file mode 100644 index 0000000..5dbdc9e --- /dev/null +++ b/106/plots2.gp @@ -0,0 +1,37 @@ + +# Common settings +set terminal pngcairo size 1000, 800 enhanced +set grid +set datafile separator whitespace +set key top left +set xlabel "N, количество" font ",14" + +# 1. Plot ex1_v.plot +set output "plot1_velocity.png" +set ylabel "Скорость (м/с)" font ",14" +plot \ + "ex1_v.plot" using 1:2:3 with yerrorbars linecolor rgb "blue" pointtype 7 title "Скорость", \ + "ex1_v.plot" using 1:2 smooth mcspline with lines linetype 2 linecolor rgb "blue" title "" + +# 2. Plot ex2_t.plot and ex2_T.plot +set output "plot2_time_force.png" +set ylabel "t (с)" font ",14" +set y2label "Сила (Н)" font ",14" +set y2tics +set ytics nomirror +plot \ + "ex2_t.plot" using 1:2:3 with yerrorbars linecolor rgb "red" pointtype 5 title "Время", \ + "ex2_t.plot" using 1:2 smooth mcspline with lines linetype 2 linecolor rgb "red" title "", \ + "ex2_T.plot" using 1:2:3 axes x1y2 with yerrorbars linecolor rgb "green" pointtype 7 title "Сила", \ + "ex2_T.plot" using 1:2 smooth mcspline axes x1y2 with lines linetype 2 linecolor rgb "green" title "" + +# 3. Plot ex4_WK.plot, ex4_WP.plot, ex4_Wfull.plot +set output "plot3_energy.png" +set ylabel "Энергия (единицы энергии)" font ",14" +plot \ + "ex4_WK.plot" using 1:2:3 with yerrorbars linecolor rgb "magenta" pointtype 7 title "Wk", \ + "ex4_WK.plot" using 1:2 smooth mcspline with lines linetype 2 linecolor rgb "magenta" title "", \ + "ex4_WP.plot" using 1:2:3 with yerrorbars linecolor rgb "cyan" pointtype 5 title "Wp", \ + "ex4_WP.plot" using 1:2 smooth mcspline with lines linetype 2 linecolor rgb "cyan" title "", \ + "ex4_Wfull.plot" using 1:2 with lines linecolor rgb "black" linetype 3 linewidth 1 title "Wfull" + |