seaborn.objects.Paths#

class seaborn.objects.Paths(artist_kws=<factory>, color=<'C0'>, alpha=<1>, linewidth=<rc:lines.linewidth>, linestyle=<rc:lines.linestyle>)#

多数のパスを描画するための、高速だが柔軟性の低いマーク。

このマークは、以下のプロパティを定義します。

color, alpha, linewidth, linestyle

参照

Path

データポイントを出現順に接続するマーク。

Lines とは異なり、このマークはプロット前に観測値をソートしないため、変数空間を通る軌跡のプロットに適しています。

p = (
    so.Plot(networks)
    .pair(
        x=["5", "8", "12", "15"],
        y=["6", "13", "16"],
    )
    .layout(size=(8, 5))
    .share(x=True, y=True)
)
p.add(so.Paths())
../_images/objects.Paths_1_0.png

このマークは、Lines と同じプロパティセットを持ちます。

p.add(so.Paths(linewidth=1, alpha=.8), color="hemi")
../_images/objects.Paths_3_0.png