I would like to change the xticks and xiticklables in hv.Barplot. However, currently I could only achieve that by adding hv.Curve(bar).options(xticks = xtic_labels). This will be plotted as curve not bar plot.
Can anyone give suggestion that how I could define custom xticklables for barplot?
HEIGHT = 300
xtick_ = np.arange(100,370,50)
xtick_labels = [(float(mz), str(mz)) for mz in xtick_]
hv.Curve(tof_pr.hvplot.bar(x='mz', y='factor_1',)).\
options(xticks=xtick_labels)
pr_curve = tof_pr.hvplot.bar(x='mz', y='factor_1')
# I had to add this sentence
pr_curve = hv.Curve(pr_curve).options(
xticks = xtick_labels, width =800)
# show
pr_curve