Created
November 11, 2018 18:40
-
-
Save GeorgeSeif/7b4e7825e8af5df047fa10f75b1b4ecb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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