Have Gradient Colors And Increasing Marker Sizes For Two Columns Of A Dataframe So That I Can See Which Datapoints Are Connected To Each Other?
In Have gradient colours in sns.pairplot for one column of dataframe so that I can see which datapoints are connected to each other very good answers were given how to solve the ch
Solution 1:
You can modify the sizes and hue for the off-diagonal data easily by adding the parameters you'd use in Matplotlib to the plot_kws
dictionary:
sns.pairplot(df, corner=True,
diag_kws=dict(color=".6"),
plot_kws=dict(
hue=df['a'],
palette="blend:gold,dodgerblue",
size = df['b']
)
)
Post a Comment for "Have Gradient Colors And Increasing Marker Sizes For Two Columns Of A Dataframe So That I Can See Which Datapoints Are Connected To Each Other?"