Skip to content

Commit a7c1e90

Browse files
authored
Updated bell curve code to use seaborn
1 parent 64259d6 commit a7c1e90

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

code/supervised/Naive_Bayes/bell_curve.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import numpy as np
22
from scipy.stats import norm
33
import matplotlib.pyplot as plt
4+
import seaborn as sns
45

56
# Create a bell curve plot using numpy and stats
67
x = np.linspace(norm.ppf(0.01), norm.ppf(0.99), 100)
8+
sns.set_style("darkgrid")
79
plt.plot(x, norm.pdf(x))
810

911
# Remove ticks from the plot

0 commit comments

Comments
 (0)