Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/qt/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 如何更改seaborn lmplot中的标记填充样式?_Python_Matplotlib_Plot_Seaborn - Fatal编程技术网

Python 如何更改seaborn lmplot中的标记填充样式?

Python 如何更改seaborn lmplot中的标记填充样式?,python,matplotlib,plot,seaborn,Python,Matplotlib,Plot,Seaborn,是否可以更改seaborn lmplot中散点图标记的填充样式 我试过:` sns.lmplot(x=x, y=y, hue=hue, hue_order = hue_order, markers=markers, scatter_kws = {'fillstyle':'none'}) 但我得到了一个错误: AttributeError: Unknown property fil

是否可以更改seaborn lmplot中散点图标记的填充样式

我试过:`

sns.lmplot(x=x, 
           y=y, 
           hue=hue, 
           hue_order = hue_order,
           markers=markers,
           scatter_kws = {'fillstyle':'none'})
但我得到了一个错误:

AttributeError: Unknown property fillstyle

fillstyle是否真的不支持lmplot
scatter\u kws
参数,或者我只是做错了什么?

您不能使用
'fillstyle':'none'
作为
scatter\u kw
参数,但您可以完成您试图使用
'FaceColor'
的操作

sns.lmplot(x=x, 
           y=y, 
           hue=hue, 
           hue_order = hue_order,
           markers=markers,
           scatter_kws = {'facecolors':'none'})

有关更多信息,请参阅文档。

您不能将
'fillstyle':'none'
用作
分散参数,但您可以完成使用
'FaceColor'
尝试执行的操作

sns.lmplot(x=x, 
           y=y, 
           hue=hue, 
           hue_order = hue_order,
           markers=markers,
           scatter_kws = {'facecolors':'none'})

有关更多信息,请参阅文档。

标记只是位图;它们不会被画成多边形,usually@MarcusM你能详细说明一下吗?我的理解是,标记是矢量绘制的,就像其他任何绘图元素一样。不是这样吗?如果它们是位图,为什么不能在这里填充呢?如果我只是做
mpl.scatter()
我可以使用
fillstyle='none'
,是吗?不,你不能。这些标记只是从一个遮罩中按像素复制的。如果我只是执行mpl.scatter(),我可以使用fillstyle='none',是吗?我想你不能。另外,您可能想要的是
{'markerfacecolor':'none'}
标记只是位图;它们不会被画成多边形,usually@MarcusM你能详细说明一下吗?我的理解是,标记是矢量绘制的,就像其他任何绘图元素一样。不是这样吗?如果它们是位图,为什么不能在这里填充呢?如果我只是做
mpl.scatter()
我可以使用
fillstyle='none'
,是吗?不,你不能。这些标记只是从一个遮罩中按像素复制的。如果我只是执行mpl.scatter(),我可以使用fillstyle='none',是吗?我想你不能。另外,您可能需要的是
{'markerfacecolor':'none'}