2Dグラフィックス関数に与えるオプションで,枠の辺に与える目盛を指定する.
FrameTicks
2Dグラフィックス関数に与えるオプションで,枠の辺に与える目盛を指定する.
詳細
- FrameTicksの設定可能な指定値
-
None 目盛を付けない Automatic 自動的に目盛を付ける True 底辺と左側の辺に自動的に目盛を付ける All すべての辺に自動的に目盛を付ける {{left,right},{bottom,top}} 各辺の目盛のオプションを個別に指定 - 各辺に個別の目盛指定を行う際は,Allで目盛ラベルを使うように指定する.
- 自動設定の目盛は,通常,座標の数値の小数桁数が最小の値になる点に付けられる.
- 各辺について,次の目盛オプションを使うことができる.
-
None 目盛は描かない Automatic 目盛の位置とラベルは自動的に選択される All 自動的な位置にラベルが付けられる {x1,x2,…} 目盛は指定の位置に描かれる {{x1,label1},{x2,label2},…} 目盛は指定されたラベルを付けて描かれる {{x1,label1,len1},…} 目盛は指定されたスケールされた長さで描かれる { { x 1 , label 1 , { plen 1 , mlen 1 } } , … }目盛は正負の方向に指定された長さで描かれる {{x1,label1,len1,style1},…} 目盛は指定のスタイルで描かれる func 目盛指定を得るために xmin, xmaxに適用される関数 - 明示的なラベルが与えられていない場合,目盛ラベルは目盛の位置の数値として与えられる.
- 任意の式を目盛ラベルとして使うことができる.
- 目盛の長さはプロット全体の長さとの割合として与えられる.
- 目盛のスタイルには任意のグラフィックス指示子を含めることができる.
- 目盛の関数 func[xmin,xmax]は他の任意の目盛オプションを返すことがある.
- FrameTicksStyleは,枠目盛と目盛ラベルに使用するデフォルトスタイルを返す.
- 目盛は,Frameで指定されているように,枠が描かれているときのみ表示される.
例題
すべて開く すべて閉じる例 (4)
Plot[Sin[x], {x, 0, 10}, Frame -> True, FrameTicks -> None]Plot[Sin[x], {x, 0, 10}, Frame -> True, FrameTicks -> Automatic]LogLogPlot[Abs[(ω I - 1)(ω I + 1) / ((ω I + 10)(ω I - 10))], {ω, 1, 10 ^ 3}, Frame -> True, FrameTicks -> Automatic]Plot[Sin[x], {x, 0, 10}, Frame -> True, FrameTicks -> {{{-1, 0, 1}, None}, {{0, Pi, 2Pi, 3Pi}, None}}]FrameTicksStyleを使って枠目盛のラベルを含む全体的な枠目盛のスタイルを指定する:
Plot[Sin[x], {x, 0, 10}, Frame -> True, FrameTicksStyle -> Directive[Orange, 12]]スコープ (10)
FrameTicksの位置とラベル (4)
Plot[Sin[x], {x, 0, 10}, Frame -> True, FrameTicks -> All]Plot[Sin[x], {x, 0, 10}, Frame -> True, FrameTicks -> {{All, None}, {None, None}}]Plot[Sin[x], {x, 0, 10}, Frame -> True, FrameTicks -> {{None, All}, {None, All}}]Plot[Sin[x], {x, 0, 10}, Frame -> True, FrameTicks -> {{None, {-1 / 2, 1 / 2}}, {{0, Pi, 2Pi, 3Pi}, None}}]Plot[Sin[x], {x, 0, 10}, Frame -> True, FrameTicks -> {{{0, 0°}, {Pi, 180°}, {2Pi, 360°}, {3Pi, 540°}}, {-1 / 2, 1 / 2}}]FrameTicksのスタイル (6)
Plot[Cos[x], {x, 0, 10}, Frame -> True, FrameTicks -> {{{0, 0°, .2}, {Pi, 180°, .2}, {2Pi, 360°, .2}, {3Pi, 540°, .2}}, {-1 / 2, 1 / 2}}]Plot[Cos[x], {x, 0, 10}, Frame -> True, FrameTicks -> {{{0, 0°, {.4, .05}}, {Pi, 180°, {.4, .05}}, {2Pi, 360°, {.4, .05}}, {3Pi, 540°, {.4, 0.05}}}, {-1 / 2, 1 / 2}}]Plot[Cos[x], {x, 0, 10}, Frame -> True, FrameTicks -> {{{Pi, 180°, {.4, .05}, Red}, {2Pi, 360°, {.4, .05}, Thick}, {3Pi, 540°, {.4, .05}, Directive[Red, Dashed]}}, {-1, 1}}]FrameTicksStyleを使って全体的な枠目盛のスタイルを指定する:
Plot[Cos[x], {x, 0, 10}, Frame -> True, FrameTicks -> All, FrameTicksStyle -> Directive[Orange, 12]]Plot[Cos[x], {x, 0, 10}, Frame -> True, FrameTicks -> All, FrameTicksStyle -> {{Magenta, Blue}, {Red, Green}}]個別にスタイル付けされた枠目盛もFrameTicksStyleとともに使うことができる.優先順位は前者が高い:
Plot[Cos[x], {x, 0, 10}, Frame -> True, FrameTicks -> {{0, {Pi, Pi, {.4, 0}, Directive[Blue, Dashed]}, 2Pi, 3Pi}, None}, FrameTicksStyle -> Directive[Orange, 12]]一般化と拡張 (1)
特性と関係 (6)
FrameTicksStyleは枠目盛と枠目盛のラベルに影響する:
Plot[2Sin[x], {x, 0, 10}, Frame -> True, FrameLabel -> {x, y}, PlotLabel -> 2Sin[x], FrameTicksStyle -> Green]LabelStyleは枠目盛ラベルを含むすべてのラベル状の要素の全体的なスタイルを提供する:
Plot[2Sin[x], {x, 0, 10}, Frame -> True, FrameLabel -> {x, y}, PlotLabel -> 2Sin[x], LabelStyle -> Directive[Red, FontFamily -> "Helvetica"]]FrameTicksStyleはLabelStyleとともに使うことができる.優先順位は前者が高い:
Plot[2Sin[x], {x, 0, 10}, Frame -> True, FrameLabel -> {x, y}, PlotLabel -> 2Sin[x], LabelStyle -> Directive[Red, FontFamily -> "Helvetica"], FrameTicksStyle -> Green]FrameStyleは枠,枠のラベル,枠目盛,枠目盛のラベルのスタイルに影響する:
Plot[2Sin[x], {x, 0, 10}, Frame -> True, FrameLabel -> {x, y}, PlotLabel -> 2Sin[x], FrameStyle -> Directive[Gray, FontSize -> 15]]FrameTicksStyleはFrameStyleとともに使うことができる.優先順位は前者の方が高い:
Plot[2Sin[x], {x, 0, 10}, Frame -> True, FrameLabel -> {x, y}, PlotLabel -> 2Sin[x], FrameStyle -> Directive[Gray, FontSize -> 15], FrameTicksStyle -> Green]個別にスタイル付けされた枠目盛を他のスタイルと共に使うことができる.優先順位は前者の方が高い:
Plot[Cos[x], {x, 0, 10}, Frame -> True, FrameTicks -> {{0, {Pi, Pi, {.4, 0}, Directive[Blue, Thick]}, 2Pi, 3Pi}, None}, FrameStyle -> Directive[Gray, Dashed], FrameTicksStyle -> Directive[Orange, 12]]Ticksは座標軸の目盛と目盛ラベルを制御する:
Graphics[Circle[], Axes -> True, Ticks -> Automatic]DateListPlotを使って日付と時刻に対応する枠目盛を得る:
DateListPlot[FinancialData["IBM", "Jan. 1, 2004"]]テクニカルノート
関連するガイド
-
▪
- グラフィックスの注釈と外観 ▪
- ラベル
履歴
1991 で導入 (2.0) | 2007 で更新 (6.0) ▪ 2008 (7.0)
テキスト
Wolfram Research (1991), FrameTicks, Wolfram言語関数, https://reference.wolfram.com/language/ref/FrameTicks.html (2008年に更新).
CMS
Wolfram Language. 1991. "FrameTicks." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2008. https://reference.wolfram.com/language/ref/FrameTicks.html.
APA
Wolfram Language. (1991). FrameTicks. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FrameTicks.html
BibTeX
@misc{reference.wolfram_2026_frameticks, author="Wolfram Research", title="{FrameTicks}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/FrameTicks.html}", note=[Accessed: 14-November-2026]}
BibLaTeX
@online{reference.wolfram_2026_frameticks, organization={Wolfram Research}, title={FrameTicks}, year={2008}, url={https://reference.wolfram.com/language/ref/FrameTicks.html}, note=[Accessed: 14-November-2026]}