Column and row children is cropped
Software versions
Python version : 3.13.15 | packaged by conda-forge | (main, Aug 10 2026, 13:05:01) [GCC 14.4.0] IPython version : 9.16.1 Tornado version : 6.5.8 NumPy version : 2.5.2 Bokeh version : 4.0.0.dev4+23.g294c9fce.dirty BokehJS static path : /home/shh/projects/bokeh/src/bokeh/server/static node.js version : v24.19.0 npm version : 11.17.0 jupyter_bokeh version : (not installed) Operating system : Linux-7.2.6-arch2-1-x86_64-with-glibc2.44
No set (non-default) settings found
Browser name and version
No response
Jupyter notebook / Jupyter Lab version
No response
Expected behavior
Follow up to github.com/bokeh/bokeh/pull/15443, to show column and row show same behavior as gridplot. Expected behavior would be no crop.
We should therefore likely make those go down the same code path as gridplot.
Observed behavior
It is cropping
Example code
from bokeh.io import curdoc
from bokeh.layouts import column, row
from bokeh.models import Legend, Range1d
from bokeh.plotting import figure
def make_scatter_with_external_legend(legend_position):
p = figure(title=legend_position, frame_width=150, frame_height=150)
r = p.scatter(x=[1, 2], y=[1, 2])
p.add_layout(Legend(items=[("test", [r])], title=legend_position), legend_position)
return p
def make_scatter_with_y_end(end):
p = figure(
frame_width=150, frame_height=150, toolbar_location=None, min_border=3,
x_range=Range1d(0, 1), y_range=Range1d(0, end),
)
p.scatter(x=[0.1, 0.9], y=[end * 0.1, end * 0.9])
return p
legends = row([make_scatter_with_external_legend(pos) for pos in ["right", "left", "above", "below"]])
ticks = column([make_scatter_with_y_end(end) for end in [1, 100000, 1000000000]])
curdoc().add_root(column(legends, ticks))Stack traceback or browser console output
No response
Screenshots
Source: bokeh/bokeh