CommunityLabels
是 CommunityGraphPlot 的一个选项,控制对社区所使用的标签和位置.
更多信息
- 可能的设置包括:
-
None 不使用标签 {lbl1,…} 对连续社区添加标签
范例
打开所有单元 关闭所有单元基本范例 (2)
范围 (7)
在符号式位置下,使用 Placed 来控制标签位置,包括外部位置:
Table[CommunityGraphPlot[[image], CommunityLabels -> Placed[{"a", "b", "c"}, p]], {p, {Before, After, Below, Above}}]pl = {{Before, Below}, {After, Below}, {Before, Above}, {After, Above}};Table[CommunityGraphPlot[[image], CommunityLabels -> Placed[{"a", "b", "c"}, p]], {p, pl}]Table[CommunityGraphPlot[[image], CommunityLabels -> Placed[{"a", "b", "c"}, p]], {p, {Left, Top, Right, Bottom}}]Table[CommunityGraphPlot[[image], CommunityLabels -> Placed[{"a", "b", "c"}, p]], {p, {{0, 0}, {1 / 2, 1 / 2}, {1, 1}}}]Table[CommunityGraphPlot[[image], CommunityLabels -> Placed[{"a", "b", "c"}, {{1, 1}, p}]], {p, {{0, 0}, {1 / 2, 1 / 2}, {1, 1}}}]使用 Labeled 对社区添加标签:
CommunityGraphPlot[[image], {{4, 7, 9, 10}, Labeled[{1, 5, 6}, "lbl1"], {2, 3, 8}}]rotateLabel[lbl_] := Rotate[lbl, 45Degree]CommunityGraphPlot[[image], CommunityLabels -> Placed[{"a", "b", "c"}, Above, rotateLabel]]相关指南
-
▪
- 标签
文本
Wolfram Research (2012),CommunityLabels,Wolfram 语言函数,https://reference.wolfram.com/language/ref/CommunityLabels.html.
CMS
Wolfram 语言. 2012. "CommunityLabels." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/CommunityLabels.html.
APA
Wolfram 语言. (2012). CommunityLabels. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/CommunityLabels.html 年
BibTeX
@misc{reference.wolfram_2026_communitylabels, author="Wolfram Research", title="{CommunityLabels}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/CommunityLabels.html}", note=[Accessed: 15-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_communitylabels, organization={Wolfram Research}, title={CommunityLabels}, year={2012}, url={https://reference.wolfram.com/language/ref/CommunityLabels.html}, note=[Accessed: 15-September-2026]}