set term postscript eps enhanced set output "flash.eps" set grid set xdata time set timefmt "%Y-%m-%d" #set xtics format "%b %d" set format x "%Y" set xlabel "Date (x)" set ylabel "Days from Last Release (y)" set title "Date vs Days from Last Flash Release" set yrange [0:750] #set xrange [1998-01-01:2015-06-01] set style line 1 lc rgb '#0060ad' lt 1 lw 2 pt 7 pi -1 ps 1.5 #set label "Neil Edelman" at screen 0.2, screen 0.15 # the time format is seconds since 2000-01-01, y(x) is days since 1996-01-01, the difference is 1461 days y(x) = a * exp (-(x - days) / flat) z(x) = a * exp (-(x/24/3600 - days) / flat /130) #fixme #z(x) = a * exp (-(x - (days - 1461)/3600/24) / flat) #z(x) = 0.1*(x/3600/24-365) + 0#+ a * exp (-(x - 24*3600*(days - 1461)) / flat) #z(x) = a * exp (-(x/3600/24 - days + 1461) / flat) #300-(x/3600/24/365) a = 2833.45 days = 712.058 - 1461 flat = 9.24284 plot "flash-extra.data" using 2:4 title "Adobe Flash Releases" with lines lt 1 linecolor rgb '#0060ad' lw 4, z(x) title "y = 2800d exp(-(x - [1994-01-18]) / 9.24d); {/Symbol C}^2_r 38000" #plot "flash.data" using 2:1 title "Flash releases" with lines #,y(x) title "x + 1" #delta(date) = (delta = date - old, old = date, delta) #old = NaN #plot "flash.data" using 2:(timecolumn(2)) title "Flash releases" with lines #delta_v(x) = ( vD = x - old_v, old_v = x, vD) #old_v = NaN #set title "Compute Deltas" #set style data lines #plot 'flash.data' using 0:($1), '' using 0:(delta_v($1)) title 'Delta'