グラフィックスの関数オプションとして使われ,どのように座標軸を描くかを指定する.
AxesStyle
グラフィックスの関数オプションとして使われ,どのように座標軸を描くかを指定する.
詳細
- AxesStyleは,2Dおよび3Dのグラフィックスに使用することができる.
- AxesStyle->style の設定で,すべての座標軸が指定のスタイルで生成されるように指定する.
- AxesStyle->{xstyle,ystyle,…}は,座標軸に,xstyle, … のグラフィックス指示子を使うように指定する.
- Thick,Red,Dashed,またThicknessやDashing等のグラフィックス指示子とDirectiveによる組合せを使ってスタイルを指定することができる.
- AxesStyleは,座標軸それ自身のスタイルとラベルや目盛マークのデフォルトスタイルの両方を与える.TicksStyleは目盛に関する指定に優先する.
- 座標軸のデフォルトの色はオプションDefaultAxesStyleによって指定される.
例題
すべて開く すべて閉じる例 (2)
Plot[Sinc[x], {x, 0, 10}, AxesStyle -> Directive[Orange, 12]]Graphics3D[Cylinder[], Axes -> True, AxesStyle -> Orange]Plot[Sinc[x], {x, 0, 10}, AxesStyle -> {Directive[Red, 12], Blue}]Graphics3D[Cylinder[], Axes -> True, AxesStyle -> {Red, Green, Blue}]スコープ (3)
Plot[Sin[x], {x, 0, 10}, AxesStyle -> Thick]Plot[Sin[x], {x, 0, 10}, AxesStyle -> Italic]Directiveでスタイルを組み合せることができる:
Plot[Sin[x], {x, 0, 10}, AxesStyle -> Directive[Thick, Italic]]一般化と拡張 (1)
座標軸のスタイルにArrowheadsを用いる:
Plot[x ^ 3, {x, -1, 1}, AxesStyle -> Arrowheads[{-0.05, 0.05}]]特性と関係 (4)
AxesStyleは座標軸,座標ラベル,目盛,目盛ラベルに影響する:
Plot[2Sin[x], {x, 0, 10}, AxesLabel -> {x, y}, PlotLabel -> 2Sin[x], AxesStyle -> Orange]LabelStyleは,座標軸のラベルや目盛ラベルを含むすべてのラベル状の要素の全体的なスタイルを提供する:
Plot[2Sin[x], {x, 0, 10}, PlotLabel -> 2Sin[x], AxesLabel -> {x, y}, LabelStyle -> Directive[Blue, FontFamily -> "Helvetica"]]目盛ラベルのスタイル付けの際,LabelStyleの設定はAxesStyleの設定を無効にする:
Plot[2Sin[x], {x, 0, 10}, PlotLabel -> 2Sin[x], AxesLabel -> {x, y}, LabelStyle -> Directive[Blue, FontFamily -> "Helvetica"], AxesStyle -> Orange]TicksStyleは目盛と目盛ラベルに影響するが,他には影響しない:
Plot[2Sin[x], {x, 0, 10}, AxesLabel -> {x, y}, PlotLabel -> 2Sin[x], TicksStyle -> Orange]目盛と目盛ラベルのスタイル付けの際,TicksStyleの設定はAxesStyleの設定を無効にする:
Plot[2Sin[x], {x, 0, 10}, AxesLabel -> {x, y}, PlotLabel -> 2Sin[x], AxesStyle -> Directive[Gray, FontSize -> 15], TicksStyle -> Orange]3Dでは,BoxStyleを使って座標軸を除く境界ボックスの辺のスタイルが指定できる:
Graphics3D[Cylinder[], Axes -> True, BoxStyle -> Directive[Dashed, Gray]]テクニカルノート
関連するガイド
-
▪
- グラフィックスの注釈と外観 ▪
- 3Dグラフィックスオプション ▪
- 色 ▪
- ノートブックにおけるグラフィックスのスタイル ▪
- ラベル
履歴
1991 で導入 (2.0) | 2007 で更新 (6.0) ▪ 2008 (7.0)
テキスト
Wolfram Research (1991), AxesStyle, Wolfram言語関数, https://reference.wolfram.com/language/ref/AxesStyle.html (2008年に更新).
CMS
Wolfram Language. 1991. "AxesStyle." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2008. https://reference.wolfram.com/language/ref/AxesStyle.html.
APA
Wolfram Language. (1991). AxesStyle. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AxesStyle.html
BibTeX
@misc{reference.wolfram_2026_axesstyle, author="Wolfram Research", title="{AxesStyle}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/AxesStyle.html}", note=[Accessed: 15-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_axesstyle, organization={Wolfram Research}, title={AxesStyle}, year={2008}, url={https://reference.wolfram.com/language/ref/AxesStyle.html}, note=[Accessed: 15-August-2026]}