Python 如何更改seaborn lmplot中的标记填充样式?
是否可以更改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
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'}