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(alpha should be 0.3) following my code above?
Thank you very much!
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))
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.