- pending goal, make the 'parameter set' for a particular data analysis uniquely drawn from a database or a collection of files. - reduce human intervention when sorting
42 lines
2.2 KiB
Plaintext
42 lines
2.2 KiB
Plaintext
#columns:
|
|
#1 is anodeindex, 2 is cathodeindex, 3,4,5 is crossover x,y,z, 6 is alpha - 7,8,9 are anode loci (first plane), 10, 11, 12 are cathode loci (first plane).
|
|
#13,14,15 are anode second plane loci, 16,17,18 are cathode second plane loci
|
|
|
|
#set term qt font 'Verdana,10' size 1920,1080
|
|
set term x11 font 'terminus-16' size 1920,1080 noraise
|
|
#set key outside
|
|
pause_status=0
|
|
load 'gnuplot_lookerup'
|
|
bind all "x" "pause_status=!pause_status"
|
|
set datafile separator ","
|
|
|
|
#anode-cathode-raw-loci, junction points colored same as anode wires
|
|
set title sprintf('press ctrl+q to redraw, Ctrl+C the terminal to exit. pause\_status=%d',pause_status)
|
|
set xlabel 'x-axis'
|
|
set ylabel 'y-axis'
|
|
#set view 212,110,1,1
|
|
|
|
set xrange [-100:100]
|
|
set yrange [-100:100]
|
|
set zrange [-200:200]
|
|
|
|
set zlabel 'z-axis'
|
|
splot '../ANASEN_analysis/PW_study_Sudarsan/results_zsort.dat' u 7:8:9:($13-$7):($14-$8):($15-$9):1 with vectors nohead dt 1 lc variable title 'anodes',\
|
|
'' u 10:11:12:($16-$10):($17-$11):($18-$12):2 w vectors nohead dt 7 lc variable title 'cathodes',\
|
|
'../ANASEN_analysis/PW_study_Sudarsan/results_zsort.dat' u 3:4:5:1 w lp ls 7 lc variable title 'vertices colored anode',\
|
|
'< cat /tmp/coords | grep an' u (an1x[int($2)+1]):(an1y[int($2)+1]):(an1z[int($2)+1]):(an2x[int($2)+1]-an1x[int($2)+1]):(an2y[int($2)+1]-an1y[int($2)+1]):(an2z[int($2)+1]-an1z[int($2)+1]) w vector nohead lc 'black' lw 8 title 'selected\_anode',\
|
|
'< cat /tmp/coords | grep ca' u (ca1x[int($2)+1]):(ca1y[int($2)+1]):(ca1z[int($2)+1]):(ca2x[int($2)+1]-ca1x[int($2)+1]):(ca2y[int($2)+1]-ca1y[int($2)+1]):(ca2z[int($2)+1]-ca1z[int($2)+1]) w vectors nohead lc 'grey' dt 2 lw 8 title 'selected\_cath',\
|
|
'< cat /tmp/coords | grep q' u (qqqR_Rho[int($3)+1]*cos((pi/180.)*qqqW_Phi[int($2)*4+int($5)+1])):(qqqR_Rho[int($3)+1]*sin((pi/180.)*qqqW_Phi[int($2)*4+int($5)+1])):(128) w p ps 4 lc 'black' title 'qqqvertex'
|
|
#'' u 7:8:9:($1):1 w labels font ',10' tc variable notitle,\
|
|
#'' u 13:14:15:($1):1 w labels font ',10' tc variable notitle,\
|
|
#'' u 10:11:12:($2):2 w labels font ',10' tc variable notitle,\
|
|
#'' u 16:17:18:($2):2 w labels font ',10' tc variable notitle
|
|
if(pause_status==0) {
|
|
pause 1.0
|
|
} else {
|
|
reread
|
|
pause mouse close
|
|
pause_status=!pause_status
|
|
}
|
|
reread
|