Note
Go to the end to download the full example code.
Violin#
Violin is a wrapper for seaborn’s violinplot.
from marsilea.plotter import Violin
import numpy as np
import matplotlib.pyplot as plt
_, ax = plt.subplots()
data = np.random.randint(0, 10, (10, 10))
Violin(data).render(ax)

var value
0 0 1
1 0 9
2 0 7
3 0 6
4 0 3
.. ... ...
95 9 7
96 9 8
97 9 3
98 9 6
99 9 1
[100 rows x 2 columns]
{'x': 'var', 'y': 'value'}
Total running time of the script: (0 minutes 0.585 seconds)