"""
Scatterplot with varying point sizes and hues
==============================================

_thumb: .45, .5

"""
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)

"""
Scatterplot with varying point sizes and hues
==============================================

_thumb: .45, .5

"""
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)

Scatterplot with varying point sizes and hues ==============================================  _thumb: .45, .5 # Load the example mpg dataset # Plot miles per gallon against horsepower with other semantics