Wolfram Language & System 10.3 (2015)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)


generates a word cloud graphic in which the are sized according to their multiplicity in the list.

generates a word cloud in which the are sized according to the weights .

also generates a word cloud in which the are sized according to the weights .

also generates a word cloud in which the are sized according to the weights .

also generates a word cloud in which the are sized according to the weights .

fits the word cloud into the region defined by shape.

Details and OptionsDetails and Options

  • Word clouds are also known as tag clouds and are often used to visualize popularity of phrases or words in a given context.
  • The can be strings or any other expression. They are rendered in the word cloud however they would normally be displayed.
  • WordCloud returns a Graphics object where each object is displayed with linear dimensions proportional to its weight.
  • WordCloud["string"] generates a word cloud of the words in .
  • Each of the can be given a symbol wrapper, which affects its behavior or rendering:
  • Annotation[si,label]provide an annotation
    Button[si,action]define an action to execute when clicked
    EventHandler[si,]define a general event handler
    Hyperlink[si,uri]create a hyperlink
    PopupWindow[si,cont]attach a popup window
    Rotate[si,θi]rotate by radians
    StatusArea[si,label]display in the status area when moused over
    Style[si,]show using the specified styles
    Tooltip[si,label]attach an arbitrary tooltip
  • Data not given in the form above is taken to be missing and will be ignored.
  • The cloud shape mask can be given in the following forms:
  • imagenonzero pixels of an Image object
    graphicsnonzero pixels of a rasterized Graphics object
    regionany 2D geometric RegionQ object
  • WordCloud has the same options as Graphics, with the following additions and changes:
  • BackgroundTransparentbackground color to use
    ColorFunctionAutomaticcolor based on weight and word
    ColorFunctionScalingTruewhether to scale weight argument of ColorFunction
    FontFamily"Helvetica"the family of font to use
    FontSizeAutomaticrange of font sizes
    FontTracking"Plain"the compression of characters
    FontWeightPlainthe weight of characters to use
    IgnoreCaseTruewhether to ignore case when computing multiplicities
    MaxItemsAutomaticmaximum number of words to show
    PlotRangeAutomaticrange of values to include
    PlotTheme$PlotThemeoverall theme for the plot
    ScalingFunctionsIdentityscaling of the weights
    WordSpacingsAutomaticspace to add around each word
    WordOrientation"Horizontal"orientation of the words to use
  • With ImageSizeAutomatic, the actual font sizes used are specified by FontSize, and the computed ImageSize will vary to fit the word cloud.
  • With ImageSize fully specified, rescaled font sizes are used so that the resulting word cloud will fit in the specified image size.
  • ScalingFunctions is applied to weights , with settings:
  • Identity,Noneno scaling function (default)
    Loglogarithmic scaling
    #^alpha&power scaling
    Inverseinverse scaling
    fuse the scaling function f
  • FontSize can be used to control font sizes from scaled weights with settings:
  • Automaticautomatically computed min and max size
    maxautomatically computed min size
    {min,max}explicit min and max size
    gexplicit mapping g between scaled weights and font size
Introduced in 2015
| Updated in 2015