seaborn.JointGrid.refline#

JointGrid.refline(*, x=None, y=None, joint=True, marginal=True, color='.5', linestyle='--', **line_kws)#

在聯合軸和/或邊際軸上加入參考線。

參數:
x, y數值

繪製線條的值。

joint, marginal布林值

是否將參考線加入到聯合軸/邊際軸。

colormatplotlib 色彩

指定參考線的顏色。

linestyle字串

指定參考線的樣式。

line_kws鍵, 值對應

x 不是 None 時,其他關鍵字參數會傳遞給 matplotlib.axes.Axes.axvline();當 y 不是 None 時,會傳遞給 matplotlib.axes.Axes.axhline()

返回:
JointGrid 實例

返回 self 以方便方法鏈接。