"crumbs": [
{
"link": {
"path": "/pokemon/type/pokemon?lang=en",
"wid": "tablePokemon"
},
"name": "Pokemon"
}
],
"data": {
"records": [
{
"id": "Pikachu",
"link": {
"path": "/pokemon/type/eletric/pikachu",
"wid": "tableEletric"
},
"available": "true",
},
{
"id": "Bulbasaur",
"link": {
"path": "/pokemon/type/grass/bulbasaur",
"wid": "tableGrass"
},
"available": "true",
}
]
}
有一个matplotlib.pyplot.scatter()
参数,该参数将使数据点在内部呈空心。如何为facecolors=None
获得相同的外观?
在先前版本的seaborn中发现了相同的论点,但由于最新版本(0.11)出于某种原因将其删除。
答案 0 :(得分:1)
seaborn
是matplotlib
的高级API,因此这似乎反映了matplotlib
中的功能fc
。要使用fc
,您还应该使用ec
。
fc='none'
而不指定ec
将导致空白标记。'None'
和'none'
均有效,但None
无效。
import seaborn as sns
# load data
penguins = sns.load_dataset("penguins", cache=False)
# set x and y
x, y = penguins["bill_length_mm"], penguins["bill_depth_mm"]
# plot
sns.jointplot(data=penguins, x="bill_length_mm", y="bill_depth_mm", ec="g", fc="none")