I can see that there is a DatetimeTickFormatter in bokeh.objects but I can’t find any documentation on how to use it to format a datetime axis.
I tried to do the same as shown in:
plt.figure(
title="TimeSeries Plot"
title_text_font_size="20pt",
plot_width=800,
plot_height=600,
)
plt.hold()
plt.line(
series.index, series.values,
color='blue',
alpha=0.2,
tools="pan,box_zoom,wheel_zoom,reset,hover",
)
xformatter = DatetimeTickFormatter(formats=dict(months=["%b-%Y"]))
xaxis = DatetimeAxis(formatter=xformatter)
plt.curplot().add_layout(xaxis, 'below')
And this does indeed add an axis with the dates specified accordingly however I now have two axis, one with numbers and one with dates! Instead of adding an axis I want to simply specify a formatter for an existing axis.
Is there any way to do this?
Thanks,
Dave

