#!/usr/bin/gnuplot reset # EPS output {{{ set terminal postscript eps enhanced set output "drahy.eps" set lmargin 5 set rmargin 0 #set bmargin 0 #set tmargin 0 a = 1 v0 = 1 s(t) = 0.5*a*t*t + v0*t v(t) = v0 + a*t set xlabel "x(t)" set ylabel "v(t)" set xtics 1 set ytics 1 set parametric set multiplot set size 1.0,1.0 # 1. stlpec set lmargin 5 set rmargin 2 set origin 0.0,0.66 set size 0.33,0.33 set title "a = -1, v_0 = -1" a = -1 v0 = -1 plot [t=0:4] [-2:2] [-2:2] s(t),v(t) notitle with line, 0,v0 notitle w p set origin 0.0,0.33 set size 0.33,0.33 set title "a = -1, v_0 = 0" a = -1 v0 = 0 plot [t=0:4] [-2:2] [-2:2] s(t),v(t) notitle with line, 0,v0 notitle w p set origin 0.0,0.0 set size 0.33,0.33 set title "a = -1, v_0 = 1" a = -1 v0 = 1 plot [t=0:4] [-2:2] [-2:2] s(t),v(t) notitle with line, 0,v0 notitle w p # 2. stlpec set lmargin 5 set rmargin 1 set size 0.33,0.33 set origin 0.33,0.66 set title "a = 0, v_0 = -1" a = 0 v0 = -1 plot [t=0:4] [-2:2] [-2:2] s(t),v(t) notitle with line, 0,v0 notitle w p set size 0.33,0.33 set origin 0.33,0.33 set title "a = 0, v_0 = 0" a = 0 v0 = 0 plot [t=0:4] [-2:2] [-2:2] s(t),v(t) notitle with line, 0,v0 notitle w p set size 0.33,0.33 set origin 0.33,0.0 set title "a = 0, v_0 = 1" a = 0 v0 = 1 plot [t=0:4] [-2:2] [-2:2] s(t),v(t) notitle with line, 0,v0 notitle w p # 3. stlpec set lmargin 5 set rmargin 0 set size 0.33,0.33 set origin 0.67,0.66 set title "a = 1, v_0 = -1" a = 1 v0 = -1 plot [t=0:4] [-2:2] [-2:2] s(t),v(t) notitle with line, 0,v0 notitle w p set size 0.33,0.33 set origin 0.67,0.33 set title "a = 1, v_0 = 0" a = 1 v0 = 0 plot [t=0:4] [-2:2] [-2:2] s(t),v(t) notitle with line, 0,v0 notitle w p set size 0.33,0.33 set origin 0.67,0.0 set title "a = 1, v_0 = 1" a = 1 v0 = 1 plot [t=0:4] [-2:2] [-2:2] s(t),v(t) notitle with line, 0,v0 notitle w p # }}} # set nomultiplot -- allow terminal change set nomultiplot # vim600: fdm=marker fdc=3