Skip to content

MAC 在產生關聯圖形出現亂碼的狀況處理方式分享 #32

Description

@rugbyball

各位好,剛剛分享了文字雲在 Mac 上亂碼的問題處理方式

#28

可是我用同樣的方式執行到後面產生關聯圖形時還是產生亂碼

http://nbviewer.ipython.org/format/slides/github/whizzalan/RTextMining/blob/gh-pages/lightingTalk/lightingTalk.ipynb#/10

後來花了不少時間才找到解決方法

原始網頁:https://lists.nongnu.org/archive/html/igraph-help/2007-07/msg00011.html

解決方式是在原來的語法中加入參數 vertex.label.family="Heiti TC Light"

plot(g, vertex.label= nodeLabel, edge.curved=TRUE, vertex.label.cex =1.25, edge.arrow.size=0.2, layout=l)

image

-->
plot(g, vertex.label= nodeLabel, edge.curved=TRUE, vertex.label.cex =1.25, edge.arrow.size=0.2, layout=l,vertex.label.family="Heiti TC Light")

終於可以顯示中文

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions