Faire un calendrier d'activité git avec gnuplot - retour accueil
git clone git://bebou.netlib.re/git-cal
Log | Files | Refs | README |
commit 1dfbf4921aaa9ab01c8b71aac552802f0135dc0b parent f101b022329a0d24f5506404d7480f1f2f9eeba9 Auterice: Arthur Pons <arthur.pons@unistra.fr> Date: Wed, 23 Oct 2024 16:02:32 +0200 Ajout d'une colorbox pas mal C'est bien en fait Diffstat:
M | graph.gp | | | 13 | +++++++++---- |
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/graph.gp b/graph.gp @@ -4,18 +4,23 @@ set term pngcairo width=2000 set term pngcairo size width,(width/(52/7)) -set tmargin 1; set lmargin 6.5 +set tmargin 1; set lmargin 6.5; set rmargin 12 x(nl) = floor(nl/7) y(nl) = int(nl*-1)%7 set border 0 -unset key unset tics +unset key stats 'nbofcommits.tsv' u 1 nooutput set cbrange [0:STATS_max] -set palette defined ( 0 "#EEEEEE", 1 "light-blue", STATS_max/2 "blue", STATS_max "dark-blue" ) +set palette defined ( 0 "#EEEEEE", 1 "light-blue", STATS_max/1.5 "blue", STATS_max "dark-blue" ) +set colorbox user \ + origin first 53, first -6 \ + size first 1, first 6.5 \ + noborder +set cbtics scale 0 nomirror set label "Mon" at -1.5, 0 set label "Thu" at -1.5,-3 @@ -24,4 +29,4 @@ set label "Sun" at -1.5,-6 plot 'nbofcommits.tsv' u ($1==-1 ? NaN:x($0)):(y($0)):1 \ w p \ pt 5 ps 5 lc palette, \ - '' u (x($0)):($5==1 ? 1.3:NaN):(strcol(4)) w labels + '' u (x($0)):($5==1 ? 1:NaN):(strcol(4)) w labels