1# Short answer:
2# Adjust the bandwidth parameter to smaller values. E.g. bw = 0.1
3
4# Example usage:
5import numpy as np
6import seaborn as sns
7import matplotlib.pyplot as plt
8
9data = np.random.rand(100)
10sns.violinplot(y=data, bw=0.1) # Changing the bw parameter adjusts how
11# tightly the data is fit by the kernel density estimate (KDE)