オブジェクトがInset中に現れたときに,デフォルトでどのように整列するかを指定するオプションである.
AlignmentPoint
オブジェクトがInset中に現れたときに,デフォルトでどのように整列するかを指定するオプションである.
詳細
- obj がAlignmentPoint->opos である場合,Inset[obj,pos]はInset[obj,pos,opos]に等しい. »
- AlignmentPointの典型的な設定は以下の通りである.
-
{x,y} プロット中の通常の座標 Scaled[{x,y},…] 0から1にスケールされた座標 ImageScaled[{x,y},…] 画像全体に渡って0から1にスケールされた座標 Offset[{dx,dy},…] 印刷用ポイント数による絶対オフセット Center等 {Center,Center}等 - x 座標は,数値またはAutomatic,あるいはLeft,Center,Right,Axisである.
- y 座標は,数値またはAutomatic,あるいはTop,Center,Bottom,Baseline,Axisである.
- Axisはプロット中の軸の位置,あるいはタイプセットされたテキストの中心線に対応する.
- Centerは画像全体の中央に対応する.
例題
すべて開く すべて閉じる例 (1)
包み込んでいるグラフィックスの中心と揃えるInset内の座標を指定する:
Table[Graphics[{Inset[Graphics[Circle[], ImageSize -> 30, AlignmentPoint -> {a, 0}], Center]}, ImageSize -> 70, Axes -> True, Ticks -> None], {a, {-1, 0, 1}}]Table[Graphics[{Inset[Graphics[Circle[], ImageSize -> 30, AlignmentPoint -> {0, a}], Center]}, ImageSize -> 70, Axes -> True, Ticks -> None], {a, {-1, 0, 1}}]スコープ (1)
0, 1座標を使って3DInsetで揃える位置を指定する:
Table[Graphics[{Inset[Graphics3D[Sphere[], ImageSize -> 50, AlignmentPoint -> {a, 1 / 2}], {0, 0}]}, ImageSize -> 100, Axes -> True, Ticks -> None], {a, {0, 1 / 2, 1}}]Table[Graphics[{Inset[Graphics3D[Sphere[], ImageSize -> 50, AlignmentPoint -> {1 / 2, a}], {0, 0}]}, ImageSize -> 100, Axes -> True, Ticks -> None], {a, {0, 1 / 2, 1}}]一般化と拡張 (1)
整列点はInsetの引数として指定できる:
Table[Graphics[{Inset[Graphics[Circle[], ImageSize -> 30], Center, {a, 0}]}, ImageSize -> 70, Axes -> True, Ticks -> None], {a, {-1, 0, 1}}]Table[Graphics[{Inset[Graphics[Circle[], ImageSize -> 30], Center, {0, a}]}, ImageSize -> 70, Axes -> True, Ticks -> None], {a, {-1, 0, 1}}]テクニカルノート
-
▪
- セルのオプション ▪
- プロットの再描画と組合せ ▪
- 表と行列
関連するガイド
テキスト
Wolfram Research (2007), AlignmentPoint, Wolfram言語関数, https://reference.wolfram.com/language/ref/AlignmentPoint.html.
CMS
Wolfram Language. 2007. "AlignmentPoint." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/AlignmentPoint.html.
APA
Wolfram Language. (2007). AlignmentPoint. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AlignmentPoint.html
BibTeX
@misc{reference.wolfram_2026_alignmentpoint, author="Wolfram Research", title="{AlignmentPoint}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/AlignmentPoint.html}", note=[Accessed: 18-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_alignmentpoint, organization={Wolfram Research}, title={AlignmentPoint}, year={2007}, url={https://reference.wolfram.com/language/ref/AlignmentPoint.html}, note=[Accessed: 18-August-2026]}