Skip to content

Instantly share code, notes, and snippets.

@TakashiHarada
Created January 29, 2019 06:29
Show Gist options
  • Save TakashiHarada/595cd63da248a9ebdef9076c8d6298c3 to your computer and use it in GitHub Desktop.
Save TakashiHarada/595cd63da248a9ebdef9076c8d6298c3 to your computer and use it in GitHub Desktop.
# http://folk.uio.no/hpl/scripting/doc/gnuplot/Kawano/intro/working.html
# gnuplot < graph.plt
# sed "s/latency/time/g" graph.plt | gnuplot
set term epslatex # color 12
set output "acl_latency.tex"
# set output "acl_time.tex"
set boxwidth 1
# set key at 6.5,7000
# set key top left
# set key below
# set key below width -8 left vertical maxrows 3
set key below width -16 left vertical maxrows 3
# set key below left vertical maxrows 3
set grid
set xlabel 'The number of Rules'
set ylabel 'Filtering Latency $L(\mathcal{R})$'
# set ylabel 'Reordering Time ($ns$)'
# set ylabel 'Memory ($kB$)'
# set ylabel 'Search Time ($s$)'
# set logscale y
# set yrange[:10000]
# plot "acl_time.dat" using ($0*7+0):2 with boxes lc rgb "blue" fs pattern 3 t 'Mohan \cite{Mohan}', \
# "acl_time.dat" using ($0*7+1):3 with boxes lc rgb "red" fs pattern 3 t '田中 \cite{takeyama}', \
# "acl_time.dat" using ($0*7+2):4:xtic(1) with boxes lc rgb "green" fs pattern 3 t '日景 \cite{hikage}', \
# "acl_time.dat" using ($0*7+3):5 with boxes lc rgb "violet" fs pattern 3 t 'SGM \cite{sgm}', \
# "acl_time.dat" using ($0*7+4):6 with boxes lc rgb "black" fs pattern 3 t 'ペアリング法 \cite{pairing}', \
# "acl_time.dat" using ($0*7+5):7 with boxes lc rgb "cyan" fs pattern 3 t '提案手法', \
plot "acl_latency.dat" using ($0*7+0):2 with boxes lc rgb "blue" fs pattern 3 t 'Mohan \cite{Mohan}', \
"acl_latency.dat" using ($0*7+1):3 with boxes lc rgb "red" fs pattern 3 t '田中 \cite{takeyama}', \
"acl_latency.dat" using ($0*7+2):4:xtic(1) with boxes lc rgb "green" fs pattern 3 t '日景 \cite{hikage}', \
"acl_latency.dat" using ($0*7+3):5 with boxes lc rgb "violet" fs pattern 3 t 'SGM \cite{sgm}', \
"acl_latency.dat" using ($0*7+4):6 with boxes lc rgb "black" fs pattern 3 t 'ペアリング法 \cite{pairing}', \
"acl_latency.dat" using ($0*7+5):7 with boxes lc rgb "cyan" fs pattern 3 t '提案手法', \
### 必要ならば
# set logscale x
# unset logscale
# set yrange[0.0:1.0]
### tgif で整形したいとき
# set terminal tgif
# set output "filename.obj"
# replot
# set terminal aqua (OS X)
# set terminal x11 (linux)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment