diff options
Diffstat (limited to '120/prak120.gp')
-rw-r--r-- | 120/prak120.gp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/120/prak120.gp b/120/prak120.gp new file mode 100644 index 0000000..aa0e72b --- /dev/null +++ b/120/prak120.gp @@ -0,0 +1,14 @@ +set term png +set output 'prak120.png' +set errorbars linecolor black linewidth 0.5 dashtype '.' +s(x) = a*x + b +c(x) = c*x + d +d(x) = e*x + f +fit s(x) 'output_120_сталь.data' using 1:2:3 via a,b +fit c(x) 'output_120_медь.data' using 1:2:3 via c,d +fit d(x) 'output_120_дюраль.data' using 1:2:3 via e,f +set xlabel "n грузов (ед.)" +set ylabel "Delta N(n) (мм)" +plot 'output_120_сталь.data' using 1:2:3 with yerrorbars pointtype 1 linecolor 0 notitle, s(x) title "Сталь" , \ + 'output_120_дюраль.data' using 1:2:3 with yerrorbars pointtype 1 linecolor 0 notitle, d(x) title "Дюраль", \ + 'output_120_медь.data' using 1:2:3 with yerrorbars pointtype 1 linecolor 0 notitle, c(x) title "Медь" |