Skip to content
Snippets Groups Projects
Commit 7f2e881e1dbc authored by Ashwin Vishnu's avatar Ashwin Vishnu
Browse files

Wordcloud

parent 447e51c681f4
No related branches found
Tags 0.2.0
No related merge requests found
......@@ -35,3 +35,6 @@
fluidsim/Scripts/spectralDNS/*
fluidsim/Scripts/dedalus*
images/*.txt
images/*.md
#!/bin/bash
pandoc ../fluiddyn_meta/fluiddyn_metapaper.tex ../fluidfft/fluidfft_paper.tex ../fluidsim/fluidsim_paper.tex -o tmp.md
python -c '
from wordcloud import STOPWORDS
def linebreak(things):
for item in things:
yield item
yield "\n"
with open("stopwords.txt", "w") as f:
f.writelines(linebreak(STOPWORDS))
f.writelines(linebreak([
"numbered", "unnumbered", "code", "using", "used", "use",
"function", "class", "method", "classes", "functions", "methods",
"array", "case", "Fig", "fig", "i0", "i1", "time"
]))
'
wordcloud_cli.py --text tmp.md --background white --margin 0 --width 720 --height 480 --stopwords stopwords.txt --imagefile wordcloud.png
images/wordcloud.png

202 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment