☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Gridplot sizing_mode does not work with 3.x

Community Support
lev.maximov
lev.maximov

This code used to work in 2.4.3, displaying two plots, one above the other, stretched to maximum width:

import bokeh.plotting as bp
import bokeh.layouts as bl

p1 = bp.figure(height=200, width=300)
p1.line([1,2], [3,4])

p2 = bp.figure(height=200, width=300)
p2.line([1,3], [2,4])

bp.show(bl.gridplot([[p1], [p2]], sizing_mode='stretch_width'))

Now it doesn’t:

⌁   Link to post

End of archived discussion · Replies are disabled