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 Language. 2012. "CommunityLabels." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CommunityLabels.html.
APA
Wolfram Language. (2012). CommunityLabels. Wolfram Language & System Documentation Center. Retrieved from 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: 10-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: 10-September-2026]}