摆放方式不同的词云
一般情况下,词云中的文字都是横向排列,这样更容易读.
In[1]:=
input = ExampleData[{"Text", "AliceInWonderland"}];
In[2]:=
WordCloud[input, ImageSize -> Medium]
Out[2]=
允许横向或纵向排列.
In[3]:=
WordCloud[input, WordOrientation -> "HorizontalVertical",
ImageSize -> Medium]
Out[3]=
指定一组单词可以旋转摆放的角度.
In[4]:=
WordCloud[input, WordOrientation -> {{0, \[Pi]/3}},
ImageSize -> Medium]
Out[4]=
允许随意摆放单词.
In[5]:=
WordCloud[input, WordOrientation -> "Random", ImageSize -> Medium]
Out[5]=