PythonにおけるWordCloudの各パラメータの意味


Pythonでワードクラウドを描く場合、WordCloudを使う必要があります.以下に各パラメータの意味を列挙します.
font_path : string  #    ,               +     , :font_path = '  .ttf'

width : int (default=400) #       ,   400  

height : int (default=200) #       ,   200  

prefer_horizontal : float (default=0.90) #             ,   0.9 (                0.1 )

mask : nd-array or None (default=None) #      ,           。   mask   ,          ,      mask   。   (#FFFFFF)        ,           。 :bg_pic = imread('      .png'),               (#FFFFFF),                 。   ps                          , ok 。

scale : float (default=1) #          ,    1.5,           1.5 

min_font_size : int (default=4) #          

font_step : int (default=1) #    ,      1,                    

max_words : number (default=200) #          

stopwords : set of strings or None #        ,    ,      STOPWORDS

background_color : color value (default=”black”) #    , background_color='white',       

max_font_size : int or None (default=None) #          

mode : string (default=”RGB”) #    “RGBA”  background_color    ,     

relative_scaling : float (default=.5) #           

color_func : callable, default=None #        ,    ,    self.color_func

regexp : string or None (optional) #              

collocations : bool, default=True #          

colormap : string or matplotlib colormap, default=”viridis” #           ,   color_func,      

random_state : int or None  #         PIL  


fit_words(frequencies)  #        
generate(text)  #        
generate_from_frequencies(frequencies[, ...])   #        
generate_from_text(text)    #        
process_text(text)  #            (     ,                  ,      fit_words(frequencies) )
recolor([random_state, color_func, colormap])   #         。                 
to_array()  #    numpy array
to_file(filename)   #