Commit 5028bc3f authored by Uwe Jandt (DESY, HIFIS)'s avatar Uwe Jandt (DESY, HIFIS)
Browse files

initial commit

parent 35ee177b
*.pdf
users_*.csv
#!/bin/bash
# extract registered aai users
cat data-raw.csv | awk 'BEGIN{FS=","}{
if ($5=="Database" && $1=="owncloud")
print $0
}' |
sort -t ',' -k 3 |
awk 'BEGIN{FS=","}{
count++;
print $3","$4","count;
}' > users_aai.csv
gnuplot plot.plt
#!/bin/gnuplot
set datafile separator ","
set terminal pdf color enhanced size 7,5 dashed
set output 'plot.pdf'
set xdata time
set format x "%Y-%m-%d"
set timefmt "%Y-%m-%d"
set yrange [0:*]
set xrange ["2020-07-01":"2022-03-01"]
set ylabel 'Registered AAI users'
# set some coordinates for diagram formatting. Can also be used to draw multiple aligned diagrams in one canvas, if wanted (multiplot)
MP_LEFT = .1
MP_RIGHT = .95
MP_BOTTOM = .14
MP_TOP = .95
MP_xGAP = 0.1
MP_yGAP = 0.02
set xtics rotate by 45
set xtics textcolor rgbcolor "black" offset -4,-3
set key top left
set linetype 2 dashtype 2
set multiplot layout 1,1 columnsfirst margins screen MP_LEFT, MP_RIGHT, MP_BOTTOM, MP_TOP spacing screen MP_xGAP, MP_yGAP
plot 'users_aai.csv' u 1:3 w l lc black notitle
unset multiplot
set multiplot layout 1,1 columnsfirst margins screen MP_LEFT, MP_RIGHT, MP_BOTTOM, MP_TOP spacing screen MP_xGAP, MP_yGAP
plot 'users_aai.csv' u 2:3 w l lc black notitle
unset multiplot
set multiplot layout 1,1 columnsfirst margins screen MP_LEFT, MP_RIGHT, MP_BOTTOM, MP_TOP spacing screen MP_xGAP, MP_yGAP
set title 'Creation time vs last seen for AAI users'
set xlabel 'Creation time'
set ylabel 'Last seen'
set ydata time
set format y "%Y-%m-%d"
set yrange ["2020-07-01":"2022-03-01"]
plot 'users_aai.csv' u 1:2 notitle
unset multiplot
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment