Commit 1ffeb264 authored by Ashwin Vishnu's avatar Ashwin Vishnu
Browse files

Wordcloud

parent 447e51c681f4
......@@ -35,3 +35,6 @@ auto/*
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
Markdown is supported
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