グラフィックス関数のオプションとして使われ,座標軸のラベルを指定する.
AxesLabel
グラフィックス関数のオプションとして使われ,座標軸のラベルを指定する.
詳細
- 次の設定を使うことができる.
-
None ラベルなし label 2Dでは y に,3Dでは z にラベルを付ける {lblx,lbly} x と y にラベルを付ける {lblx,lbly,lblz} x,y,z にラベルを付ける Automatic Plot等に指定された変数に基づいたラベル - デフォルトで,2Dグラフィックスの軸ラベルは軸の端に付けられる.3Dグラフィックスでは軸の中央に並べられる.
- どんな式でもラベルとして指定することができる.ラベルはデフォルトでTraditionalFormで返される.テキストの任意の文字列も"text"として与えることができる. »
例題
すべて開く すべて閉じる例 (4)
Plot[Sinc[x], {x, 0, 10}, AxesLabel -> Sinc[x]]Plot3D[Abs[x + I y], {x, -4, 4}, {y, -4, 4}, AxesLabel -> Abs[z]]Graphics[Circle[], Axes -> True, AxesLabel -> {x, y}]Plot3Dで指定されている変数に基づいたラベルを使う:
Plot3D[Sin[θ ρ], {θ, 0, 3}, {ρ, 0, 3}, AxesLabel -> Automatic]LabelStyleですべてのラベル状の要素の全体的なスタイルが指定できる:
Plot[2Sin[x], {x, 0, 10}, AxesLabel -> {x, 2Sin[x]}, LabelStyle -> Directive[Blue, Bold]]スコープ (2)
ラベルにはデフォルトでTraditionalFormが使われる:
Plot[Sinc[x], {x, 0, 10}, AxesLabel -> Sinc[x]]代りにStandardFormを使う:
Plot[Sinc[x], {x, 0, 10}, AxesLabel -> StandardForm[Sinc[x]]]個別にスタイル付けされたラベルをLabelStyleとともに使うことができる.優先順位は前者が高い:
Plot[Sin[x], {x, 0, 10}, AxesLabel -> {Style[x, Large, Bold, Red], Style[y, Large, Bold, Blue]}, LabelStyle -> Directive[Orange, Bold]]一般化と拡張 (2)
PlotとPlot3Dで指定された変数に基づいたラベルを使う:
Plot[Sinc[θ], {θ, 0, 10}, AxesLabel -> Automatic]label = Graphics[{Text["radian", {0, -2}], Pink, Disk[{0, 0}, 1, {0, 3Pi / 2}]}, ImageSize -> 30];Plot[{Sin[x], Cos[x]}, {x, 0, 2Pi}, AxesLabel -> {label, None}]特性と関係 (1)
全体的な出力の書式はFormatTypeを使って指定できることが多い:
Plot[Sin[x], {x, 0, 10}, AxesLabel -> {x, Sin[x]}, FormatType -> StandardForm]考えられる問題 (1)
おもしろい例題 (2)
Plot[{Sin[x], Cos[x]}, {x, 0, 10}, AxesLabel -> {Graphics3D[Sphere[], ImageSize -> 40], Graphics3D[Cylinder[], ImageSize -> 40]}]DynamicModule[{t = Automatic, s = Automatic}, Dynamic@Show[Plot[{Sin[x], Cos[x]}, {x, 0, 10}], AxesLabel -> {Labeled[Checkbox[Dynamic[t], {None, Automatic}], x], Labeled[Checkbox[Dynamic[s], {None, Automatic}], y]}, Ticks -> {t, s}, ImagePadding -> 40]]テクニカルノート
関連するガイド
履歴
1988 で導入 (1.0) | 2007 で更新 (6.0)
テキスト
Wolfram Research (1988), AxesLabel, Wolfram言語関数, https://reference.wolfram.com/language/ref/AxesLabel.html (2007年に更新).
CMS
Wolfram Language. 1988. "AxesLabel." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2007. https://reference.wolfram.com/language/ref/AxesLabel.html.
APA
Wolfram Language. (1988). AxesLabel. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AxesLabel.html
BibTeX
@misc{reference.wolfram_2026_axeslabel, author="Wolfram Research", title="{AxesLabel}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/AxesLabel.html}", note=[Accessed: 17-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_axeslabel, organization={Wolfram Research}, title={AxesLabel}, year={2007}, url={https://reference.wolfram.com/language/ref/AxesLabel.html}, note=[Accessed: 17-August-2026]}