background_color color value (default=”black”)īackground color for the word cloud image. Ignored if using generate_from_frequencies. font_step > 1 might speed up computation but Will stop when there is no more room in this Might lead to a coarser fit for the words. Using scale instead of larger canvas size is significantly faster, but contour_color: color value (default=”black”) If prefer_horizontal 0, draw the mask contour. The ratio of times to try horizontal fitting as opposed to vertical. If you are onĪnother OS or don’t have this font, you need to adjust this path. Parameters font_path stringįont path to the font that will be used (OTF or TTF).ĭefaults to DroidSansMono path on a Linux machine. Word cloud object for generating and drawing. WordCloud ( font_path = None, width = 400, height = 200, margin = 2, ranks_only = None, prefer_horizontal = 0.9, mask = None, scale = 1, color_func = None, max_words = 200, min_font_size = 4, stopwords = None, random_state = None, background_color = 'black', max_font_size = None, font_step = 1, mode = 'RGB', relative_scaling = 'auto', regexp = None, collocations = True, colormap = None, normalize_plurals = True, contour_width = 0, contour_color = 'black', repeat = False, include_numbers = False, min_word_length = 0, collocation_threshold = 30 ) ¶
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |