Skip to content

Commit

Permalink
gnuplot doesn't work with old version at hpcc
Browse files Browse the repository at this point in the history
  • Loading branch information
Weilei Zeng committed Apr 15, 2020
1 parent b34b029 commit 6cce941
Show file tree
Hide file tree
Showing 12 changed files with 4,441 additions and 143 deletions.
7 changes: 5 additions & 2 deletions gnuplot/build_index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@ echo "<h2>result in hpcc. Latest first</h2>" >> index.html

for f in $(ls -t hpcc_bp_plot/*.pdf)
do
echo $f
# echo $f

echo "<embed src=\"https://drive.google.com/viewerng/
viewer?embedded=true&url=https://cluster.hpcc.ucr.edu/~wzeng002/gnuplot_bp/$f\"
width=\"500\" height = \"320\" >" >> index.html
width=\"500\" height = \"320\" >"

echo "<embed src=\"$f\"
width=\"500\" height = \"360\" >" >> index.html

done

Binary file not shown.
27 changes: 12 additions & 15 deletions gnuplot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,15 @@
</head>

<h2>result in hpcc. Latest first</h2>
<embed src="https://drive.google.com/viewerng/
viewer?embedded=true&url=https://cluster.hpcc.ucr.edu/~wzeng002/gnuplot_bp/hpcc_bp_plot/bp4-test-run-nonconverge.pdf"
width="500" height = "320" >
<embed src="https://drive.google.com/viewerng/
viewer?embedded=true&url=https://cluster.hpcc.ucr.edu/~wzeng002/gnuplot_bp/hpcc_bp_plot/bp4-iter-9-fb-5-data-1000-sch-3-min-sum-nonconverge.pdf"
width="500" height = "320" >
<embed src="https://drive.google.com/viewerng/
viewer?embedded=true&url=https://cluster.hpcc.ucr.edu/~wzeng002/gnuplot_bp/hpcc_bp_plot/my-bp4-iter-9-fb-25-data-100-schedule-3-hpcc-nonconverge.pdf"
width="500" height = "320" >
<embed src="https://drive.google.com/viewerng/
viewer?embedded=true&url=https://cluster.hpcc.ucr.edu/~wzeng002/gnuplot_bp/hpcc_bp_plot/my-bp4-iter-9-fb-5-data-100-schedule-3-hpcc-nonconverge.pdf"
width="500" height = "320" >
<embed src="https://drive.google.com/viewerng/
viewer?embedded=true&url=https://cluster.hpcc.ucr.edu/~wzeng002/gnuplot_bp/hpcc_bp_plot/my-bp4-iter-9-fb-5-data-500-schedule-3-nonconverge.pdf"
width="500" height = "320" >
<embed src="hpcc_bp_plot/bp5-test-run-nonconverge.pdf"
width="500" height = "360" >
<embed src="hpcc_bp_plot/bp4-test-run-nonconverge.pdf"
width="500" height = "360" >
<embed src="hpcc_bp_plot/bp4-iter-9-fb-5-data-1000-sch-3-min-sum-nonconverge.pdf"
width="500" height = "360" >
<embed src="hpcc_bp_plot/my-bp4-iter-9-fb-25-data-100-schedule-3-hpcc-nonconverge.pdf"
width="500" height = "360" >
<embed src="hpcc_bp_plot/my-bp4-iter-9-fb-5-data-100-schedule-3-hpcc-nonconverge.pdf"
width="500" height = "360" >
<embed src="hpcc_bp_plot/my-bp4-iter-9-fb-5-data-500-schedule-3-nonconverge.pdf"
width="500" height = "360" >
14 changes: 14 additions & 0 deletions gnuplot/result/bp5-test-run.gnudat
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# header
# sizes: 13, 9, 5,
# p, P_c converge rate, counts_total, counts_nonconverge, timer.toc()
0.199526 0.000000 1000.000000 1000.000000 40.317827 0.199526 0.001000 1000.000000 999.000000 10.853131 0.199526 0.210000 1000.000000 790.000000 1.041267
0.158489 0.000000 1000.000000 1000.000000 38.806985 0.158489 0.010000 1000.000000 990.000000 9.268032 0.158489 0.256000 1000.000000 744.000000 0.961305
0.125893 0.001000 1000.000000 999.000000 38.808523 0.125893 0.031000 1000.000000 969.000000 8.889744 0.125893 0.374000 1000.000000 626.000000 0.680342
0.100000 0.008000 1000.000000 992.000000 38.470676 0.100000 0.098000 1000.000000 902.000000 8.540088 0.100000 0.493000 1000.000000 507.000000 0.691053
0.079433 0.037000 1000.000000 963.000000 37.920038 0.079433 0.207000 1000.000000 793.000000 7.536043 0.079433 0.609000 1000.000000 391.000000 0.586871
0.063096 0.141000 1000.000000 859.000000 34.292281 0.063096 0.399000 1000.000000 601.000000 6.138815 0.063096 0.719000 1000.000000 281.000000 0.356047
0.050119 0.322000 1000.000000 678.000000 30.576202 0.050119 0.580000 1000.000000 420.000000 5.005290 0.050119 0.819000 1000.000000 181.000000 0.278438
0.039811 0.541000 1000.000000 459.000000 23.167305 0.039811 0.725000 1000.000000 275.000000 3.847120 0.039811 0.873000 1000.000000 127.000000 0.187103
0.031623 0.703000 1000.000000 297.000000 15.158479 0.031623 0.812000 1000.000000 188.000000 2.557382 0.031623 0.919000 1000.000000 81.000000 0.128891
0.025119 0.819000 1000.000000 181.000000 9.882634 0.025119 0.897000 1000.000000 103.000000 1.899418 0.025119 0.944000 1000.000000 56.000000 0.133001
0.019953 0.889000 1000.000000 111.000000 6.879536 0.019953 0.952000 1000.000000 48.000000 1.002495 0.019953 0.973000 1000.000000 27.000000 0.064171
22 changes: 11 additions & 11 deletions gnuplot/result/my-bp5-test.gnudat
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# header
# sizes: 13, 9, 5,
# p, P_c converge rate, counts_total, counts_nonconverge, timer.toc()
0.199526 0.000000 107.000000 107.000000 8.693991 0.199526 0.000000 107.000000 107.000000 2.091622 0.199526 0.230216 139.000000 107.000000 0.256222
0.158489 0.000000 107.000000 107.000000 8.855936 0.158489 0.009259 108.000000 107.000000 2.089882 0.158489 0.316129 155.000000 106.000000 0.240383
0.125893 0.000000 107.000000 107.000000 8.832254 0.125893 0.044643 112.000000 107.000000 2.143848 0.125893 0.286667 150.000000 107.000000 0.238226
0.100000 0.036036 111.000000 107.000000 8.979232 0.100000 0.053097 113.000000 107.000000 2.130170 0.100000 0.478049 205.000000 107.000000 0.245918
0.079433 0.061404 114.000000 107.000000 8.897053 0.079433 0.256944 144.000000 107.000000 2.188192 0.079433 0.602273 264.000000 105.000000 0.254901
0.063096 0.183206 131.000000 107.000000 9.184160 0.063096 0.401130 177.000000 106.000000 2.265145 0.063096 0.730479 397.000000 107.000000 0.264265
0.050119 0.314103 156.000000 107.000000 9.420049 0.050119 0.622776 281.000000 106.000000 2.438023 0.050119 0.847482 695.000000 106.000000 0.284545
0.039811 0.578740 254.000000 107.000000 10.339284 0.039811 0.722222 378.000000 105.000000 2.523526 0.039811 0.878301 871.000000 106.000000 0.294539
0.031623 0.715447 369.000000 105.000000 11.069835 0.031623 0.853964 719.000000 105.000000 2.900765 0.031623 0.917918 999.000000 82.000000 0.271430
0.025119 0.823024 582.000000 103.000000 11.870014 0.025119 0.883539 893.000000 104.000000 2.862727 0.025119 0.959880 997.000000 40.000000 0.167649
0.019953 0.883878 887.000000 103.000000 12.938705 0.019953 0.940000 1000.000000 60.000000 2.268555 0.019953 0.979899 995.000000 20.000000 0.118463
0.199526 0.000000 115.000000 115.000000 4.740372 0.199526 0.008621 116.000000 115.000000 1.077048 0.199526 0.166667 138.000000 115.000000 0.120963
0.158489 0.000000 115.000000 115.000000 4.584156 0.158489 0.000000 115.000000 115.000000 1.076458 0.158489 0.290123 162.000000 115.000000 0.122089
0.125893 0.000000 115.000000 115.000000 4.721913 0.125893 0.008621 116.000000 115.000000 1.089932 0.125893 0.430693 202.000000 115.000000 0.123647
0.100000 0.008621 116.000000 115.000000 4.709910 0.100000 0.080000 125.000000 115.000000 1.119131 0.100000 0.542169 249.000000 114.000000 0.126820
0.079433 0.049587 121.000000 115.000000 4.719997 0.079433 0.248366 153.000000 115.000000 1.129704 0.079433 0.666667 339.000000 113.000000 0.128065
0.063096 0.148148 135.000000 115.000000 4.739748 0.063096 0.457547 212.000000 115.000000 1.183370 0.063096 0.716418 402.000000 114.000000 0.134709
0.050119 0.380435 184.000000 114.000000 4.932773 0.050119 0.558140 258.000000 114.000000 1.183846 0.050119 0.843882 711.000000 111.000000 0.142835
0.039811 0.542857 245.000000 112.000000 5.109341 0.039811 0.738208 424.000000 111.000000 1.266003 0.039811 0.885840 911.000000 104.000000 0.150446
0.031623 0.698113 371.000000 112.000000 5.523925 0.031623 0.832572 657.000000 110.000000 1.384625 0.031623 0.928000 1000.000000 72.000000 0.143576
0.025119 0.801382 579.000000 115.000000 6.054776 0.025119 0.904000 1000.000000 96.000000 1.590318 0.025119 0.957000 1000.000000 43.000000 0.084194
0.019953 0.872619 840.000000 107.000000 6.285890 0.019953 0.932000 1000.000000 68.000000 1.237633 0.019953 0.968000 1000.000000 32.000000 0.073009
4 changes: 4 additions & 0 deletions gnuplot/test.gnu
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
set terminal pdf
set output 'test.pdf'

plot x , x*x, 'xx.gnudat' using 1:2
Binary file added gnuplot/test.pdf
Binary file not shown.
13 changes: 6 additions & 7 deletions gnuplot/toric_rate.gnu
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ! /usr/bin/gnuplot
#!/usr/bin/gnuplot

# parameter
data_folder='result'
Expand Down Expand Up @@ -27,7 +27,7 @@ data_title='my-bp4-iter-9-fb-5-data-50-schedule-3'
data_title='my-bp4-iter-9-fb-5-data-500-schedule-3'
data_title='my-bp4-iter-9-fb-5-data-100-schedule-3-hpcc'
data_title='bp4-iter-9-fb-5-data-1000-sch-3-min-sum'
data_title='bp4-test-run'
data_title='bp5-test-run'


plot_title='-weight'
Expand All @@ -53,7 +53,7 @@ set format y "10^{%L}"
set logscale x
set format x "10^{%L}"
#set xrange [0.01:0.021]
set xrange [0.01:0.41]
set xrange [0.015:0.25]
#set yrange [0.01:1]
set title "BP for toric code ".data_title.plot_title

Expand All @@ -70,9 +70,8 @@ size_set="13 9 5"


# plot rate
plot for [i=1:3] data_file using (column((i-1)*5+1)):(1-column((i-1)*5+2)) title 'size '.word(size_set,i) with linespoints ps 0.5 lc i
#, \
#[0.02:0.09] x*x*x*1000 title 'x^3' dt '.'
plot for [i=1:3] data_file using (column((i-1)*5+1)):(1-column((i-1)*5+2)) title 'size '.word(size_set,i) with linespoints ps 0.5 lc i,\
x*x*x*1000 title 'x^3'


# plot weight of input error
Expand All @@ -92,4 +91,4 @@ plot for [i=1:3] data_file using (column((i-1)*5+1)):(1-column((i-1)*5+2)) title
#pause -1 "hit any key to exit"


# system "./build_index.sh"
system "./build_index.sh"
Loading

0 comments on commit 6cce941

Please sign in to comment.