diff options
Diffstat (limited to '207/plots.gp')
-rw-r--r-- | 207/plots.gp | 86 |
1 files changed, 77 insertions, 9 deletions
diff --git a/207/plots.gp b/207/plots.gp index f197258..09b2442 100644 --- a/207/plots.gp +++ b/207/plots.gp @@ -1,16 +1,84 @@ set term pngcairo size 1000, 800 set grid +f1(x) = a1*x +f2(x) = a2*x +f3(x) = a3*x+b3 +f4(x) = a4*x+b4 -#f1(x) = a1*x+b1 -#fit f1(x) '.plot' using 1:2:3 yerr via a1, b1 -set output '' -set title "" -set xlabel "" -set ylabel "" +set output 'ex4.png' +fit f1(x) 'DSilnViV0_Tconst1.plot' using 1:2 via a1 +fit f2(x) 'DSilnViV0_Tconst4.plot' using 1:2 via a2 + +set title "Зависимость при разных температурах" +set xlabel "ед." +set ylabel "S_i, Дж/К" + +plot 'DSilnViV0_Tconst1.plot' notitle lc 0 pt 1 lw 2, \ + f1(x) title " (T = 289 K)" lc rgb "magenta",\ + 'DSilnViV0_Tconst4.plot' notitle lc 0 pt 1 lw 2, \ + f2(x) title " (T = 3232.5 K)" lc rgb "red" + + +set output 'ex1.png' +unset label +set title "зависимости P(V), PV(V) в изотермическом процессе при разных температурах" +set xlabel "V, м^3" +set ylabel "P, Па" +set y2tics +set y2label "PV, Па * м^3" set key top left +set yrange[950:1200] +set y2range[35000:45000] + +plot 'PV1.plot' notitle axis x1y1 lc 0 pt 1 lw 2, \ + 'PV1.plot' with lines axis x1y1 smooth csplines title "P(V) (T = 289 K)" lc rgb "orange", \ + 'PVV1.plot' notitle axis x1y2 lc 0 pt 1 lw 2, \ + 'PVV1.plot' with lines axis x1y2 smooth csplines title "PV(V) (T = 289 K)" lc rgb "magenta", \ + 'PV4.plot' notitle axis x1y1 lc 0 pt 1 lw 2, \ + 'PV4.plot' with lines axis x1y1 smooth csplines title "P(V) (T = 323.5 K)" lc rgb "red", \ + 'PVV4.plot' notitle axis x1y2 lc 0 pt 1 lw 2, \ + 'PVV4.plot' with lines axis x1y2 smooth csplines title "PV(V) (T = 323.5 K)" lc rgb "green" + + +set output 'ex23_mnk.png' +fit f1(x) 'DSilnTiT0_Pconst.plot' using 1:2 via a1 +fit f2(x) 'DSilnTiT0_Vconst.plot' using 1:2 via a2 + +unset xrange +unset yrange +unset x2tics +unset y2label +unset y2range +set title "зависимости при P = const, V = const" +set xlabel "ед." +set ylabel "S_i, Дж/К" + +set label sprintf("(A)_P = %.4g\n (A)_V = %.4g", a1, a2) at graph 0.2, 0.9 front boxed +plot 'DSilnTiT0_Vconst.plot' notitle lc rgb "green" pt 1 lw 3,\ + 'DSilnTiT0_Pconst.plot' notitle lc rgb "magenta" pt 2 lw 3,\ + f2(x) title "V = const" lc rgb "green",\ + f1(x) title "P = const" lc rgb "magenta" +unset label + +set output 'ex2.png' +set title "Зависимость V/T от V при P = const" +set xlabel "V, м^3" +set ylabel "V/T, м^3/К" +set yrange[0.13:0.14] + +plot 'VTV.plot' notitle lc 0 pt 1 lw 2,\ + 'VTV.plot' title "V/T (V)" lc rgb "magenta" with lines smooth csplines + + + +set output 'ex3.png' -#set label sprintf("A = %.4g\n B = %.4g", a1, b1) at graph 0.2, 0.9 front boxed -#plot '.plot' using 1:2:3 with yerrorbars notitle lc 0 pt 1 lw 2, \ -# f1(x) title "" lc rgb "red" +set title "Зависимость P/T (P) при V = const (по большей части)" +set xlabel "P, Па" +set ylabel "P/T, Па/K" +set yrange[3:3.2] +set xrange [980:1001] +plot 'PTP.plot' notitle lc 0 pt 1 lw 2,\ + 'PTP.plot' title "P/T (P)" lc rgb "magenta" with lines smooth path |