--- format:markdown ... # Simplest usage wget+gnuplot ~~~ { .bash } echo "set ytics nomirror;plot '< wget -q -O - http://golem.fjfi.cvut.cz/shots/0/DAS/1011NIbasic.ON/NIdata_5114_ch0_ascii.txt' u 1:2 w l title 'data'" | gnuplot -persist ~~~ # Multiple graphs in one figure
[Full jpg](figures/WGpressureScan/graph.jpg), [svg version](http://golem.fjfi.cvut.cz/wikiraw/SW/gnuplot/figures/WGpressureScan/graph.svg) (recommended), [canvas version](http://golem.fjfi.cvut.cz/wikiraw/SW/gnuplot/figures/WGpressureScan/graph.html) (recommended), [script](figures/WGpressureScan/script.sh). ~~~ { .bash } BASE="\ set xrange [9:25];set yrange [0:12];set style data dots;set ylabel 'U_{loop} [V]';set xlabel 't [ms]';set key right outside;\ plot `for i in 485 484 483 482 480 478 476 475 474 $(seq 487 494); do echo -n "'< \ wget -q -O - http://golem.fjfi.cvut.cz/cgi-bin/data/11$i/loop_voltage' \ u ("'$1*1000'"):2 w l title '#11$i $(wget -qO- http://golem.fjfi.cvut.cz/cgi-bin/data/11$i/pressure) mPa',"; done` 0\ " echo $BASE|gnuplot -persist; echo "set terminal jpeg size 800,600;$BASE"|gnuplot > graph.jpg; echo "set terminal svg enhanced mouse jsdir 'http://golem.fjfi.cvut.cz/wikiraw/SW/gnuplot/js/';$BASE"|gnuplot > graph.svg echo "set term canvas enhanced mousing jsdir 'http://golem.fjfi.cvut.cz/wikiraw/SW/gnuplot/js/';$BASE"|gnuplot > graph.html ~~~ # Online $T_e$ calculation `echo "x=0;set xrange [0.007:0.02];plot '< wget -q -O - http://golem.fjfi.cvut.cz/utils/data/14306/nistandard' u 1:((((x=x+\$4*5)-\$2/0.01*5.5)*0.7/(\$2*5.5))**(2/3.0)) w l title 'RP'"|gnuplot -persist` ![](figures/Teexamp.jpg) # 3D graphs (fast variant) ShotPath=http://golem.fjfi.cvut.cz/utils/data/14754;wget -q -O - $ShotPath/papouch_za >papouch_za;echo "set yrange [`wget -q -O - $ShotPath/plasma_start`:`wget -q -O - $ShotPath/plasma_end`]; splot 'papouch_za' u (1):1:2 w l t '#1',`for i in \`seq 2 12\` ;do echo -ne \'\' u \($i\):1:$i w l t \'\#$i\',; done` '' u (12):1:12 w l t '#12'"|gnuplot -persist (slow, elegant variant) ShotPath=http://golem.fjfi.cvut.cz/utils/data/14754;echo "set yrange [`wget -q -O - $ShotPath/plasma_start`:`wget -q -O - $ShotPath/plasma_end`]; splot '< wget -q -O - $ShotPath/papouch_za' u (1):1:2 w l t '#1',`for i in \`seq 2 12\` ;do echo -ne \'\' u \($i\):1:$i w l t \'\#$i\',; done` '' u (12):1:12 w l t '#12'"|gnuplot -persist ![](figures/3Dgraphexamp.jpg)
# colormap and plot from matrix shotnum=14838; Time_start=`wget -q -O - http://golem.fjfi.cvut.cz/utils/data/$shotnum/plasma_start`; Time_end=`wget -q -O - http://golem.fjfi.cvut.cz/utils/data/$shotnum/plasma_end`; echo `echo |(echo 26; seq 1 1 25)` > kanaly_rada.txt; echo| (echo| cat kanaly_rada.txt; paste <(wget -q -O - http://golem.fjfi.cvut.cz/utils/data/$shotnum/papouch_za | sed 1d) <(wget -q -O - http://golem.fjfi.cvut.cz/utils/data/$shotnum/papouch_ko | sed 1d)) > dat_test.txt; echo "set pm3d implicit at bst map ; unset surface; set pm3d interpolate 20,20; set term png; set output \"|display\"; set key horizontal font \"Helvetica, 20\" width 1.8 at graph 0.84; set title 'bolometric heat map for shot number $shotnum'; set ytics 1,1,24; set xlabel 'channel number'; set ylabel 'U[V]'; set xlabel 't[ms]'; set yrange [24:1]; set palette rgbformulae 21,22,23; set xrange [$Time_start*1e3:$Time_end*1e3]; splot 'dat_test.txt' every :100 nonuniform matrix using (\$2*1e3):1:(-\$3) title ' '"|gnuplot #Hints * echo -e "1 1\n2 2"|gnuplot -p -e "plot '-'" #For Linux fan club (GOLEM specific): If you have wget and gnuplot installed, then you can try something like this right from the command line: ## Two charts in one plot (compare $U_l$ signals from 2 discharges) echo "set ytics nomirror;set xrange [0:0.04];set yrange [0:20];set style data dots;set ylabel 'loop_voltage';set y2label 'loop_voltage';plot '< wget -q -O - http://golem.fjfi.cvut.cz/cgi-bin/data/13849/loop_voltage' u 1:2 w l title '13849-loop_voltage','< wget -q -O - http://golem.fjfi.cvut.cz/cgi-bin/data/13850/loop_voltage' u 1:2 w l title '13850-loop_voltage'"|gnuplot -persist ![](training/UloopGraph/U_lNo13849vsU_lNo13850.jpg) ## realtime integration of $I_{rog}$ coil signal .~~~ echo "dt=0.001;x=0.00;set xrange [0.005:0.02];set yrange [0:0.8];set style data dots;set ylabel 'loop_voltage';set y2label 'loop_voltage';plot '< wget -q -O - http://golem.fjfi.cvut.cz/cgi-bin/data/14257/irog' u 1:2 w l title 'irog','< wget -q -O - http://golem.fjfi.cvut.cz/cgi-bin/data/14257/irog' u 1:(x=x+\$2*dt) w l title 'irog';print x"|gnuplot -persist ![](training/UloopGraph/I_rogNo14257vsItsIntegral.jpg) ~~~
If you have anything to contribute to this page, you are welcome to send it to mail with a small description where and what you are offering. Thank you in advance, GOLEM team.