Skip to content

Instantly share code, notes, and snippets.

@GeorgeSeif
Created November 11, 2018 18:40
Show Gist options
  • Select an option

  • Save GeorgeSeif/7b4e7825e8af5df047fa10f75b1b4ecb to your computer and use it in GitHub Desktop.

Select an option

Save GeorgeSeif/7b4e7825e8af5df047fa10f75b1b4ecb to your computer and use it in GitHub Desktop.
# Importing libs
import seaborn as sns
import matplotlib.pyplot as plt
from scipy.stats import skewnorm
# Create the data
speed = skewnorm.rvs(4, size=50)
size = skewnorm.rvs(4, size=50)
# Create and shor the 2D Density plot
ax = sns.kdeplot(speed, size, cmap="Reds", shade=False, bw=.15, cbar=True)
ax.set(xlabel='speed', ylabel='size')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment