Skip to content

Instantly share code, notes, and snippets.

@yichao0319
Created January 13, 2014 05:06
Show Gist options
  • Save yichao0319/8395045 to your computer and use it in GitHub Desktop.
Save yichao0319/8395045 to your computer and use it in GitHub Desktop.
gnuplot:legend
reset
set terminal postscript eps enhanced 28
set size 1.2,0.09
set pointsize 0
set border 0
set noxtics;
set noytics;
set key Left above left reverse nobox horizontal spacing 1 samplen 3.5 width 2
set output "legend.eps"
set style line 1 lc rgb "red" lt 1 lw 5 pt 1 ps 3 pi -1 ## +
set style line 2 lc rgb "blue" lt 2 lw 5 pt 2 ps 3 pi -1 ## x
set style line 3 lc rgb "#00CC00" lt 5 lw 5 pt 3 ps 3 pi -1 ## *
set style line 4 lc rgb "#7F171F" lt 4 lw 5 pt 4 ps 3 pi -1 ## box
set style line 5 lc rgb "#FFD800" lt 3 lw 5 pt 5 ps 3 pi -1 ## solid box
set style line 6 lc rgb "#000078" lt 6 lw 5 pt 6 ps 3 pi -1 ## circle
set style line 7 lc rgb "#732C7B" lt 7 lw 5 pt 7 ps 3 pi -1
set style line 8 lc rgb "black" lt 8 lw 5 pt 8 ps 3 pi -1 ## triangle
set pointintervalbox 3 ## interval to a point
plot [:0.001][0:0.001] \
x+100 with linespoints ls 1 title '{/Helvetica=28 SRMF+KNN}', \
x+100 with linespoints ls 2 title '{/Helvetica=28 LENS+KNN}', \
x+100 with linespoints ls 3 title '{/Helvetica=28 Combined}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment