Scatter plot with variable marker size (seaborn)
I am using a seaborn pairplot to plot a scatter plot of different dimensions of my datapoints. However, I want the markers of the datapoints to have a size that corresponds to one of the dimensions of the datapoints. I have the following code: markersize = 1000* my_dataframe['dim_size'] / sum(my_dataframe['dim_size']) sns.set_context("notebook", font_scale=1.5, rc={'figure.figsize': [11, 8]}) sns.set_style("darkgrid", {"axes.facecolor": ".9"}) kws = dict(s=markersize, linewidth=.5, edgecolor="w") sbax = sns.pairplot(my_dataframe, hue='dim_hue' x_vars=['dim_1', 'dim_2'], y_vars=['dim_3', 'dim_4