Beautiful and useful plots, this seaborn.
I am trying to position violinplots on the abcissa, as the distributions I am investigating depend on a numerical parameter. Should really be quite easy with
import matplotlib as plt
import seaborn as sns
import numpy as np
y = list()
for n in (10, 100, 1000):
rs = np.random.RandomState(0);
y.append(rs.normal(0, 2, n))
sns.violinplot(data=y, positions=(0, 5, 7))
if I want the abcissa positions of the violins to be at 0, 5 and 7, respectively. In this answer mwaskom points out that violinplot takes a positions
argument. Regardless of what I do, such as passing a numpy array or tuple, the positions of the violinplots remain the same and seem to be assigned to an increasing integer starting with 0.