Код: Выделить всё
plt.figure(figsize=(8, 4))
ax = sns.violinplot(
x=data, # `data` is a few thousand float values between 0 and 1
orient='h',
color=get_color(ff), # `get_color` returns a color based on the dataset, #FFBE0B in this case
cut=0
)

Я хочу сделать черный ящик посередине немного больше. Согласно документации Seaborn по адресу https://seaborn.pydata.org/generated/se ... nplot.html, я смогу сделать это с помощью параметра Internal_kws. Я добавил этот аргумент в приведенный выше код:
Код: Выделить всё
plt.figure(figsize=(8, 4))
ax = sns.violinplot(
x=data, # `data` is a few thousand float values between 0 and 1
orient='h',
color=get_color(ff), # `get_color` returns a color based on the dataset, #FFBE0B in this case
inner_kws=dict(box_width=150, whis_width=20),
cut=0
)
Подробнее здесь: https://stackoverflow.com/questions/790 ... iolin-plot