Skip to content

Instantly share code, notes, and snippets.

@sahasourav17
Created February 7, 2022 10:33
Show Gist options
  • Save sahasourav17/c674c785bbec245d9b3a453f7b72acfb to your computer and use it in GitHub Desktop.
Save sahasourav17/c674c785bbec245d9b3a453f7b72acfb to your computer and use it in GitHub Desktop.
#importing required libraries
from scipy.stats import norm
import seaborn as sns
import matplotlib.pyplot as plt
#creating the normal distribution
data = norm.rvs(size=10000,loc=0,scale=1)
#plotting the data
ax = sns.distplot(data,
bins=100,
kde=True,
color='skyblue',
hist_kws={"linewidth": 15,'alpha':1})
ax.set(xlabel='Normal Distribution', ylabel='Frequency')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment