-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplot_all.sh
More file actions
96 lines (86 loc) · 3.09 KB
/
plot_all.sh
File metadata and controls
96 lines (86 loc) · 3.09 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#!/bin/bash
#
# Version: $Id: plot_all.sh 566 2011-02-27 22:25:19Z fefo $
#
expBaseName=$1
outdir=$2
# Set title and output type
title=${expBaseName}
font=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
fontsize=9
width=850
height=850
outputFile=results/${expBaseName}_all_results.png
gnustr="set terminal png font '${font},${fontsize}' size ${width}, ${height}"
gnustr="${gnustr}; set output '${outputFile}'"
# gnustr="${gnustr}; set output '| display png:-'"
gnustr="${gnustr}; set multiplot layout 2, 2 title '${title} results'"
# Plot
title="Mean Phase Residual"
xlabel="noise"
ylabel="ini"
str="set title '${title}'"
str="${str}; set zrange [*:*]"
str="${str}; set xlabel '${xlabel}'"
# str="${str}; set xtics (\"0\" 0, \"15\" 1, \"30\" 2, \"45\" 3, \"60\" 4) "
str="${str}; set ylabel '${ylabel}'"
# str="${str}; set ytics (\"0\" 0, \"1\" 1, \"3\" 2, \"5\" 3) "
# str="${str}; set hidden3d"
str="${str}; set view 70,330"
str="${str}; splot"
str="${str} '${outdir}/${expBaseName}_SCILAB_CSP_END_PR' matrix with lines ti \"CSP END\", "
str="${str} '${outdir}/${expBaseName}_SCILAB_USP_END_PR' matrix with lines ti \"USP END\" "
gnustr="${gnustr}; ${str}"
# Plot
title="Frobenius of difference of Transformation Matrices"
xlabel="noise"
ylabel="ini"
str="set title '${title}'"
str="${str}; set zrange [*:*]"
str="${str}; set xlabel '${xlabel}'"
# str="${str}; set xtics (\"0\" 0, \"15\" 1, \"30\" 2, \"45\" 3, \"60\" 4) "
str="${str}; set ylabel '${ylabel}'"
# str="${str}; set ytics (\"0\" 0, \"1\" 1, \"3\" 2, \"5\" 3) "
# str="${str}; set hidden3d"
str="${str}; set view 70,330"
str="${str}; splot"
str="${str} '${outdir}/${expBaseName}_SCILAB_CSP_END_Frob' matrix with lines ti \"CSP END\", "
str="${str} '${outdir}/${expBaseName}_SCILAB_USP_END_Frob' matrix with lines ti \"USP END\" "
gnustr="${gnustr}; ${str}"
# Plot
title="FSC"
xlabel="noise"
ylabel="ini"
str="set title '${title}'"
str="${str}; set zrange [*:*]"
str="${str}; set xlabel '${xlabel}'"
# str="${str}; set xtics (\"0\" 0, \"15\" 1, \"30\" 2, \"45\" 3, \"60\" 4) "
str="${str}; set ylabel '${ylabel}'"
# str="${str}; set ytics (\"0\" 0, \"1\" 1, \"3\" 2, \"5\" 3) "
# str="${str}; set hidden3d"
str="${str}; set view 70,330"
str="${str}; splot"
str="${str} '${outdir}/${expBaseName}_SCILAB_CSP_FSC' matrix with lines ti \"CSP END\", "
str="${str} '${outdir}/${expBaseName}_SCILAB_USP_FSC' matrix with lines ti \"USP END\" "
gnustr="${gnustr}; ${str}"
# Plot
title="FSC (vs. GT)"
xlabel="noise"
ylabel="ini"
str="set title '${title}'"
str="${str}; set zrange [*:*]"
str="${str}; set xlabel '${xlabel}'"
# str="${str}; set xtics (\"0\" 0, \"15\" 1, \"30\" 2, \"45\" 3, \"60\" 4) "
str="${str}; set ylabel '${ylabel}'"
# str="${str}; set ytics (\"0\" 0, \"1\" 1, \"3\" 2, \"5\" 3) "
# str="${str}; set hidden3d"
str="${str}; set view 70,330"
str="${str}; splot"
str="${str} '${outdir}/${expBaseName}_SCILAB_CSP_GTFSC' matrix with lines ti \"CSP END\", "
str="${str} '${outdir}/${expBaseName}_SCILAB_USP_GTFSC' matrix with lines ti \"USP END\" "
gnustr="${gnustr}; ${str}"
# Run gnuplot
command=`echo "${gnustr}" | gnuplot`
# echo ${command}
$command
display ${outputFile} &