LegendSpacing
Legendのオプションであり,各記号を1としたスケールで,各記号の周囲のスペースの大きさを指定する.
LegendSpacing
LegendSpacing
Legendのオプションであり,各記号を1としたスケールで,各記号の周囲のスペースの大きさを指定する.
詳細とオプション
- LegendSpacingを使うためには,まずプロットの凡例パッケージをロードしなくてはならない.それにはNeeds["PlotLegends`"]を実行する必要がある.
- 以下の設定を使うことができる:
-
n 数値 Automatic 自動的にスペースを決定する - ボックスを隣合せにする(例えば連続した線等の場合)ときは,LegendSpacingは0に設定しなければならない.
例題
例 (1)
Needs["PlotLegends`"]Plot[{Sin[x], Cos[x]}, {x, 0, 2Pi}, PlotLegend -> {"sine", "cosine"}, LegendSpacing -> 0]LegendSpacingの値を大きくすると,凡例の記号の間隔が大きくなる:
Plot[{Sin[x], Cos[x]}, {x, 0, 2Pi}, PlotLegend -> {"sine", "cosine"}, LegendSpacing -> 0.2]テクニカルノート
関連するガイド
テキスト
Wolfram Research (2007), LegendSpacing, Wolfram言語関数, https://reference.wolfram.com/language/PlotLegends/ref/LegendSpacing.html.
CMS
Wolfram Language. 2007. "LegendSpacing." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/PlotLegends/ref/LegendSpacing.html.
APA
Wolfram Language. (2007). LegendSpacing. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/PlotLegends/ref/LegendSpacing.html
BibTeX
@misc{reference.wolfram_2026_legendspacing, author="Wolfram Research", title="{LegendSpacing}", year="2007", howpublished="\url{https://reference.wolfram.com/language/PlotLegends/ref/LegendSpacing.html}", note=[Accessed: 04-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_legendspacing, organization={Wolfram Research}, title={LegendSpacing}, year={2007}, url={https://reference.wolfram.com/language/PlotLegends/ref/LegendSpacing.html}, note=[Accessed: 04-September-2026]}