seaborn.objects.Path#

class seaborn.objects.Path(artist_kws=<factory>, color=<'C0'>, alpha=<1>, linewidth=<rc:lines.linewidth>, linestyle=<rc:lines.linestyle>, marker=<rc:lines.marker>, pointsize=<rc:lines.markersize>, fillcolor=<depend:color>, edgecolor=<depend:color>, edgewidth=<rc:lines.markeredgewidth>)#

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

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

アルファ線幅線種マーカー点サイズ塗りつぶしの色縁の色縁の幅

参照

Line

方向軸に沿ってソートしてデータポイントを接続するマーク。

Paths

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

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

p = so.Plot(healthexp, "Spending_USD", "Life_Expectancy", color="Country")
p.add(so.Path())
../_images/objects.Path_1_0.png

それ以外の点では、設定またはマッピングできる多くのプロパティを含め、同じオプションセットを提供します。

p.add(so.Path(marker="o", pointsize=2, linewidth=.75, fillcolor="w"))
../_images/objects.Path_3_0.png