Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
word_cloud_est
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
keeleliin
word_cloud_est
Commits
813b3f24
Commit
813b3f24
authored
Aug 18, 2015
by
Andreas Mueller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add slight variant to simple.py
parent
9aaf5337
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
examples/simple.py
examples/simple.py
+6
-0
No files found.
examples/simple.py
View file @
813b3f24
...
...
@@ -17,4 +17,10 @@ wordcloud = WordCloud().generate(text)
# Open a plot of the generated image.
plt
.
imshow
(
wordcloud
)
plt
.
axis
(
"off"
)
# take relative word frequencies into account, lower max_font_size
wordcloud
=
WordCloud
(
max_font_size
=
40
,
relative_scaling
=
.
5
).
generate
(
text
)
plt
.
figure
()
plt
.
imshow
(
wordcloud
)
plt
.
axis
(
"off"
)
plt
.
show
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment