-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlot_channels.sh
executable file
·40 lines (40 loc) · 1.88 KB
/
Plot_channels.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
#
gnuplot << EOF
reset
set terminal pdfcairo enhanced color font 'Verdade,12'
set output "Channels.pdf"
set style line 101 lc rgb '#000000' lt 1 lw 2
set border 3 front ls 101
set tics nomirror out scale 0.75
set key fixed right top vertical Right noreverse noenhanced autotitle nobox
set style histogram clustered gap 1 title textcolor lt -1
set xtics border in scale 0,0 nomirror #rotate by -60 autojustify
set yrange [:]
set xrange [:]
set xtics auto
set ytics auto
set format y '%.0s%cB'
set key top left
#set style line 4 lc rgb '#CC0000' lt 2 dashtype '---' lw 4 pt 5 ps 0.4 # --- red
set style line 1 lc rgb '#990099' pt 9 lw 2 ps 0.6 # circle
set style line 2 lc rgb '#004C99' pt 8 lw 2 ps 0.6 # circle
set style line 3 lc rgb '#CCCC00' pt 3 lw 2 ps 0.6 # circle
set style line 4 lc rgb 'red' pt 7 lw 2 ps 0.6 # circle
set style line 5 lc rgb '#009900' pt 5 lw 2 ps 0.6 # circle
set style line 6 lc rgb '#990000' pt 6 lw 2 ps 0.6 # circle
set style line 7 lc rgb '#009999' pt 4 lw 2 ps 0.6 # circle
set style line 8 lc rgb '#19004C' pt 8 lw 2 ps 0.6 # circle
set style line 9 lc rgb '#CC6600' pt 9 lw 2 ps 0.6 # circle
set style line 10 lc rgb '#322152' pt 10 lw 2 ps 0.6 # circle
set style line 11 lc rgb '#425152' pt 11 lw 2 ps 0.6 # circle
set style line 12 lc rgb '#190040' pt 8 lw 2 ps 0.6 # circle
set style line 13 lc rgb '#CC6600' pt 9 lw 2 ps 0.6 # circle
set style line 14 lc rgb '#7C2961' pt 10 lw 2 ps 0.6 # circle
set grid
set ylabel "Gain Megabytes (Original - Sorted)"
set xlabel "Number of reference sequences"
plot 'sequences.txt' u 1:(\$3-\$6) w lp ls 12 title 'headers', 'sequences.txt' u 1:(\$4-\$7) w lp ls 13 title 'DNA bases', 'sequences.txt' u 1:(\$5-\$8) w lp ls 14 title 'quality-scores'
EOF
#
evince Sequences.pdf &