Re: [matplotlib-devel] Problem with violinplot

2015-07-04 Thread Thomas Caswell
Yes, that seems reasonable. @elmar you seem to have a pretty good grasp of the code and the use case, would you mind taking a crack at adding those special cases? Tom On Sat, Jul 4, 2015 at 8:58 AM elmar werling wrote: > having a look at seaborns ViolinPlotter class > (https://github.com/mwask

Re: [matplotlib-devel] Problem with violinplot

2015-07-04 Thread elmar werling
having a look at seaborns ViolinPlotter class (https://github.com/mwaskom/seaborn/blob/master/seaborn/categorical.py), they explicit handle the special case of "no data" and "single unique datapoint" at line 580 ff. Could something similar be added to matplotlibs violinplot? On 04.07.2015 12:2

Re: [matplotlib-devel] Problem with violinplot

2015-07-04 Thread elmar werling
from an end user point of view, matplotlibs violinplot should just do the same as seaborns violinplot. # import numpy as np import matplotlib.pyplot as plt import seaborn as sns N = 100 y1 = np.random.randn(N) + 3.0 y2 = np.ran