Skip to content Skip to sidebar Skip to footer

How To Change The Scatter Transparency In Seaborn.pairplot?

sns.pairplot(data_new, kind='scatter', hue='location', plot_kws=dict(s=80, edgecolor='white', linewidth=2.5)) Hey folks, can someone tell me how to change the scatter transparency

Solution 1:

You are already using plot_kws to pass in parameters to the plotting function. Therefore, alpha is simply another parameter you can add to this dictionary:

sns.pairplot(data_new, kind="scatter", hue="location",
              plot_kws=dict(s=80, edgecolor="white", linewidth=2.5, alpha=0.3))

Post a Comment for "How To Change The Scatter Transparency In Seaborn.pairplot?"