You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/venv/lib/python3.5/site-packages/IPython/core/interactiveshell.py", line 3265, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-32-77bf6a4625f1>", line 1, in <module>
hv.renderer('bokeh').static_html(hv.Violin(data=df, kdims='time_of_day', vdims='level').opts(inner='quartiles'))
File "/venv/lib/python3.5/site-packages/holoviews/plotting/renderer.py", line 361, in static_html
html = self.html(obj, fmt)
File "/venv/lib/python3.5/site-packages/holoviews/plotting/renderer.py", line 284, in html
plot, fmt = self._validate(obj, fmt)
File "/venv/lib/python3.5/site-packages/holoviews/plotting/renderer.py", line 220, in _validate
plot = self.get_plot(obj, renderer=self, **kwargs)
File "/venv/lib/python3.5/site-packages/holoviews/plotting/bokeh/renderer.py", line 134, in get_plot
plot = super(BokehRenderer, self_or_cls).get_plot(obj, renderer, **kwargs)
File "/venv/lib/python3.5/site-packages/holoviews/plotting/renderer.py", line 207, in get_plot
plot.update(init_key)
File "/venv/lib/python3.5/site-packages/holoviews/plotting/plot.py", line 595, in update
return self.initialize_plot()
File "/venv/lib/python3.5/site-packages/holoviews/plotting/bokeh/element.py", line 1049, in initialize_plot
self._init_glyphs(plot, element, ranges, source)
File "/venv/lib/python3.5/site-packages/holoviews/plotting/bokeh/element.py", line 1192, in _init_glyphs
data, mapping, style = self.get_data(element, ranges, style)
File "/venv/lib/python3.5/site-packages/holoviews/plotting/bokeh/stats.py", line 411, in get_data
kde, segs, bars, scatter = self._kde_data(g, key, **kwargs)
File "/venv/lib/python3.5/site-packages/holoviews/plotting/bokeh/stats.py", line 347, in _kde_data
sidx = np.argmin(np.abs(xs-stat))
File "/venv/lib/python3.5/site-packages/numpy/core/fromnumeric.py", line 1019, in argmin
return _wrapfunc(a, 'argmin', axis=axis, out=out)
File "/venv/lib/python3.5/site-packages/numpy/core/fromnumeric.py", line 57, in _wrapfunc
return getattr(obj, method)(*args, **kwds)
ValueError: attempt to get argmin of an empty sequence
This also happens for inner='stick' but not for inner='box'
The text was updated successfully, but these errors were encountered:
There is a case when rendering a Violin plot with 'quartiles' or 'stick' for the
inner
option will cause it to raise an exception.Example:
Exception:
This also happens for
inner='stick'
but not forinner='box'
The text was updated successfully, but these errors were encountered: