Datetime axis can have unequal tick spacing
Author: muendleinCreated Sep 26, 2026Updated Sep 27, 2026
Software versions
4.0dev5
Browser name and version
No response
Jupyter notebook / Jupyter Lab version
No response
Expected behavior
Axis tick spacing should be equal.
Observed behavior
Unequal tick spacing when crossing month boundaries.
Example code
import numpy as np
import pandas as pd
from bokeh.io import curdoc
from bokeh.plotting import figure
t = pd.date_range(start="2023-06-01 23:00", end="2023-06-09 01:00", periods=11)
print(t)
y = np.linspace(0, 10, 11)
fig = figure(x_axis_type="datetime")
fig.line(t, y)
doc = curdoc()
doc.add_root(fig)Stack traceback or browser console output
No response
Screenshots
Source: bokeh/bokeh