Fix examples

This commit is contained in:
xtreak 2018-03-24 14:56:22 +05:30
parent aaf84eac36
commit ebe2fe049d
2 changed files with 19 additions and 13 deletions

View file

@ -16,7 +16,13 @@ Given a map of element and the frequency the following image is generated. More
(ns examples
(:require [clj-wordcloud.core :refer :all]))
(let [frequency-map (zipmap (random-words 100) (shuffle (range 300)))
(def programming-languages ["Clojure" "Haskell" "Go" "Rust" "Scala" "Python" "Perl"
"Ruby" "Smalltalk" "PHP" "Java" "JavaScript"
"C" "C++" "Lisp" "Scheme" "Typescript" "D" "R" "Brainfuck" "Elixir"
"Erlang" "C#" "BASIC" "Logo" "Alice" "Dart" "Purescript" "Prolog"
"Ada" "F#" "Julia" "Kotlin" "Swift" "Delphi"])
(let [frequency-map (zipmap programming-languages (shuffle (range 300)))
word-cloud (word-cloud frequency-map
{:dimension {:width 600
:height 600}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 37 KiB