LineScaledCoordinate[{{x1,y1},{x2,y2},…,{xk,yk}},r]
点{x1,y1}からスケールされた距離 r において,ポリライン{{x1,y1},{x2,y2},…,{xk,yk}}の点の座標を返す.
LineScaledCoordinate[{{x1,y1},{x2,y2},…,{xk,yk}}]
LineScaledCoordinate[{{x1,y1},{x2,y2},…,{xk,yk}},0.5]と等価である.
LineScaledCoordinate
LineScaledCoordinate[{{x1,y1},{x2,y2},…,{xk,yk}},r]
点{x1,y1}からスケールされた距離 r において,ポリライン{{x1,y1},{x2,y2},…,{xk,yk}}の点の座標を返す.
LineScaledCoordinate[{{x1,y1},{x2,y2},…,{xk,yk}}]
LineScaledCoordinate[{{x1,y1},{x2,y2},…,{xk,yk}},0.5]と等価である.
詳細とオプション
- LineScaledCoordinateを使うためには,まずグラフユーティリティパッケージをロードしなくてはならない.それにはNeeds["GraphUtilities`"]を実行する必要がある.
- LineScaledCoordinateは2D,3Dのどちらにも有効である.
例題
すべて開く すべて閉じる例 (1)
Needs["GraphUtilities`"]矢印から60%下がった点において辺を形成する頂点を表示する:
LayeredGraphPlot[{1 -> 2, 2 -> 3, 1 -> 3, 1 -> 1, 2 -> 1}, EdgeRenderingFunction -> ({Arrow[#1], Text[#2, LineScaledCoordinate[#1, 0.6], Background -> White]}&)]GraphPlot3Dで辺のラベルを加える:
GraphPlot3D[{{1 -> 2, "Edge 12"}, 1 -> 3, 1 -> 4, {1 -> 5, "Edge 15"}, 2 -> 3, 2 -> 4, 2 -> 5, 3 -> 4, 3 -> 5, 4 -> 5}, VertexLabeling -> True, EdgeRenderingFunction -> ({RGBColor[0.5, 0, 0], Line[#1], Black, If[#3 =!= None, Text[#3, LineScaledCoordinate[#1, 0.5], Background -> White], {}]}&)]インタラクティブな例題 (1)
Manipulate[
LayeredGraphPlot[{4 -> 3, 5 -> 3, 5 -> 4, 6 -> 1, 6 -> 2, 6 -> 4, 6 -> 5, 6 -> 3}, VertexLabeling -> True, EdgeRenderingFunction -> ({Line[#1], Text[#2, LineScaledCoordinate[#1, t], Background -> White]}&), ImageSize -> 500], {{t, 0.5}, 0.1, 0.9}, Initialization :> Needs["GraphUtilities`"]]テクニカルノート
関連するガイド
-
▪
- グラフユーティリティパッケージ ▪
- グラフとネットワーク ▪
- グラフの可視化 ▪
- グラフ上の計算 ▪
- グラフの構築と表現 ▪
- グラフと行列 ▪
- グラフの特性と測定 ▪
- グラフの操作と変更 ▪
- ランダムグラフ ▪
- ソーシャルネットワーク分析 ▪
- グラフの特性 ▪
- 数学データ形式 ▪
- 離散数学
テキスト
Wolfram Research (2007), LineScaledCoordinate, Wolfram言語関数, https://reference.wolfram.com/language/GraphUtilities/ref/LineScaledCoordinate.html.
CMS
Wolfram Language. 2007. "LineScaledCoordinate." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/GraphUtilities/ref/LineScaledCoordinate.html.
APA
Wolfram Language. (2007). LineScaledCoordinate. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/GraphUtilities/ref/LineScaledCoordinate.html
BibTeX
@misc{reference.wolfram_2026_linescaledcoordinate, author="Wolfram Research", title="{LineScaledCoordinate}", year="2007", howpublished="\url{https://reference.wolfram.com/language/GraphUtilities/ref/LineScaledCoordinate.html}", note=[Accessed: 19-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_linescaledcoordinate, organization={Wolfram Research}, title={LineScaledCoordinate}, year={2007}, url={https://reference.wolfram.com/language/GraphUtilities/ref/LineScaledCoordinate.html}, note=[Accessed: 19-August-2026]}