繁体   English   中英

如何更改seaborn lmplot中的标记fillstyle?

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM