Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
keeleliin
word_cloud_est
Commits
47210a6e
Commit
47210a6e
authored
Dec 24, 2014
by
Andreas Mueller
Browse files
minor fixes for website
parent
0c616689
Changes
2
Hide whitespace changes
Inline
Side-by-side
doc/conf.py
View file @
47210a6e
...
...
@@ -254,7 +254,7 @@ texinfo_documents = [
# theme further.
html_theme_options
=
{
# Navigation bar title. (Default: ``project`` value)
#
'navbar_title': "Wordcloud",
'navbar_title'
:
"Wordcloud"
,
# Tab name for entire site. (Default: "Site")
#'navbar_site_name': "Site",
...
...
examples/a_new_hope.py
View file @
47210a6e
...
...
@@ -43,6 +43,7 @@ wc = WordCloud(max_words=1000, mask=mask, stopwords=stopwords, margin=10,
default_colors
=
wc
.
to_array
()
plt
.
title
(
"Custom colors"
)
plt
.
imshow
(
wc
.
recolor
(
color_func
=
grey_color_func
,
random_state
=
3
))
wc
.
to_file
(
"a_new_hope.png"
)
plt
.
axis
(
"off"
)
plt
.
figure
()
plt
.
title
(
"Default colors"
)
...
...
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