seaborn.objects.Lines#
- class seaborn.objects.Lines(artist_kws=<factory>, color=<'C0'>, alpha=<1>, linewidth=<rc:lines.linewidth>, linestyle=<rc:lines.linestyle>)#
多数のラインを描画するための、高速だが柔軟性のないマーク。
参照
Line
方向軸に沿ってソートされたデータポイントを結ぶマーク。
例
Line
と同様に、このマークはソートされた観測値の間に接続線を描画します。so.Plot(seaice, "Date", "Extent").add(so.Lines())
Line
と比較して、このマークは設定可能なプロパティが少ないですが、多数のラインを描画する際のパフォーマンスが向上する可能性があります。( so.Plot( x=seaice["Date"].dt.day_of_year, y=seaice["Extent"], color=seaice["Date"].dt.year ) .facet(seaice["Date"].dt.year.round(-1)) .add(so.Lines(linewidth=.5, color="#bbca"), col=None) .add(so.Lines(linewidth=1)) .scale(color="ch:rot=-.2,light=.7") .layout(size=(8, 4)) .label(title="{}s".format) )