[英]How to change marker fillstyle in seaborn lmplot?
是否可以在海床lmplot中更改散點圖標記的填充樣式?
我嘗試過:
sns.lmplot(x=x,
y=y,
hue=hue,
hue_order = hue_order,
markers=markers,
scatter_kws = {'fillstyle':'none'})
但是我得到了錯誤:
AttributeError: Unknown property fillstyle
lmplot scatter_kws
參數是否真的不支持scatter_kws
,還是我做錯了什么?
您不能使用'fillstyle':'none'
作為scatter_kw
參數,但是您可以使用'fillstyle':'none'
完成您要執行'facecolors'
。
sns.lmplot(x=x,
y=y,
hue=hue,
hue_order = hue_order,
markers=markers,
scatter_kws = {'facecolors':'none'})
有關更多信息,請參見matplotlib.pyplot.scatter文檔。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.