Faire des qcm simplement - retour accueil
git clone git://bebou.netlib.re/qcm
Log | Files | Refs | README |
commit c93dfa2d79a5d9c8411a7a00fdb606a933fbf266 parent 11e70bf1730aef6ed4590b4672efcdbf1844e3f4 Auteurice: Arthur Pons <arthur.pons@unistra.fr> Date: Tue, 12 Nov 2024 20:15:07 +0100 Plus bel affichage gnuplot Utilisation des caractères unicode de box drawing pour rendre un peu plus joli la sortie gnuplot On est sur du luxe là Diffstat:
M | qcm.sh | | | 8 | ++++++-- |
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/qcm.sh b/qcm.sh @@ -34,14 +34,18 @@ show() <<-. cat total : $tot . -gplot() gnuplot -e " +gplot() { +gnuplot -e " set term dumb; set border 1+2; set ytics scale 0 nomirror autofreq 1; set xtics nomirror; set yrange [0:*]; plot '-' u 1:xtic(2) w histo not; -" +" | sed 's/-/━/g; s/|/┃/g; s/ \* / ┃ /g; s/ \*\*/ ┏━/g; s/━+/━━/g; s/+━/┗━/g; + s/\([0-9]\) +/\1 ┃/g; s/\(┃ \+\)+/\1 /g; s/\*\* /━┓ /g; s/\*\*\*/━━━/g; + s/\*\*/━━/g' +} calcandshow() {