关注于数据分析的小站

Scatterplot with varying point sizes and hues

https://i2.wp.com/seaborn.pydata.org/_images/scatter_bubbles.png?ssl=1


import seaborn as sns
sns.set(style="white")

# Load the example mpg dataset
mpg = sns.load_dataset("mpg")

# Plot miles per gallon against horsepower with other semantics
sns.relplot(x="horsepower", y="mpg", hue="origin", size="weight",
            sizes=(40, 400), alpha=.5, palette="muted",
            height=6, data=mpg)
赞(1)
未经允许不得转载:0dayhub » Scatterplot with varying point sizes and hues
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
%d 博主赞过: