Open fkromer opened 4 years ago
Currently you should be able to emulate this with:
spikes = hv.Spikes((x_vals, y_vals))
spikes * hv.Scatter(spikes)
@philippjfr Thx for the workaround. I'm using hvplot via the pandas plotting backend. How do I have to adjust your hint? pd.DataFrame.plot(kind='Spikes', x='x axis label', y='y axis label').plot(kind='Scatter')
Oh right, didn't see you posted this on hvPlot. I don't think we currently expose Spikes through hvPlot. This should do it:
import holoviews as hv
scatter = df.plot.scatter(x='x axis label', y='y axis label')
hv.Spikes(scatter) * scatter
import holoviews as hv
scatter = df.plot(kind='scatter', x='retention time', y='intensity')
hv.Spikes(scatter) * scatter
works. Thx.
I think we should still expose spikes
in hvplot.
I think we should still expose
spikes
in hvplot.
Maybe update the title too to reflect that? Some people may look for spikes, some others for stem (there are maybe other names for this kind of plot).
stem
is definitely much more standard than spikes
.
Is your feature request related to a problem? Please describe.
I'd like to plot data as stemplot. Seems like there is no stemplot supported yet.
Describe the solution you'd like
Porting the functionality from matplotlib.pyplot.stem would be reasonable.