Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python seaborn violin plot fit data better

# Short answer:
# Adjust the bandwidth parameter to smaller values. E.g. bw = 0.1

# Example usage:
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt

data = np.random.rand(100)
sns.violinplot(y=data, bw=0.1) # Changing the bw parameter adjusts how
#	tightly the data is fit by the kernel density estimate (KDE)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #seaborn #violin #plot #fit #data
ADD COMMENT
Topic
Name
1+1 =