Created
April 17, 2022 12:17
-
-
Save glefait/6359a43c8be193631ab9029372f3e16c to your computer and use it in GitHub Desktop.
Vérifie la pertinence d'un tweet de Marajo https://twitter.com/EDDIEMARAJO/status/1515495843797037058
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# download the file | |
curl https://www.data.gouv.fr/fr/datasets/r/d5f400de-ae3f-4966-8cb6-a85c70c6c24a -L -o rne-CM.csv | |
# create the histogram with gnuplot | |
cut -f5- rne-cm.csv \ | |
| grep -P "^972" \ | |
| fgrep '1er' \ | |
| cut -f3 \ | |
| cut -c 1 \ | |
| sort | uniq -c \ | |
| gnuplot -p -e "set key off; set ylabel 'Nombre'; set yrange [0:]; | |
set xlabel 'Première lettre du nom'; | |
set title 'Première lettre du 1er adjoint en Martinique'; | |
set style data histogram;set terminal png truecolor; set term png; | |
set output 'histogram-1er-adjoint-mq.png'; | |
plot '-' using 1:xtic(2)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment