matplotlib.pyplot.scatter()
has a facecolors=None
argument that will give datapoints the appearance of being hollow on the inside. How to get the same look for seaborn.jointplot()
?
The same argument was found in previous versions of seaborn but was removed for some reason in the latest version (0.11).
seaborn
is a high-level API formatplotlib
, this seems to mirror functionality inmatplotlib
fc
. To usefc
,ec
should also be used.fc='none'
, without specifyingec
, will result in blank markers.fc
:facecolor
,ec
:edgecolor
'None'
and'none'
both work, but notNone
.python 3.11.3
,matplotlib 3.7.1
,seaborn 0.12.2
hue
is used inseaborn v0.12
,fc=
doesn't seem to work.marker="$\circ$"
produces this plot.seaborn v0.12
this doesn't seem to workec
requires more than a single color if using thehue=
parameter. However, it's easier to createpalette
by zipping the unique values from the column passed tohue
, to a known color palette, for anything more than a couple of colors.palette = dict(zip(df.species.unique(), sns.color_palette('tab10')))
'tab10'
is the defaultspecies = df.species.unique()
andpalette = dict(zip(species, sns.color_palette('crest', n_colors=len(species))))
n_colors
will generate apalette
with better color differentiation.Palettes