☰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

Width of row of buttons matching that of figure

Community Support
arthurb
arthurb

the width of the row of buttons nicely matches that of the figure below them in a column, but not when i make one of the buttons narrower. in that case, the button row is wider than the figure. is there a way to make it the same width? thanks.

from bokeh.io import show
from bokeh.models import Button
from bokeh.layouts import row, column
from bokeh.plotting import figure

width=400

button1 = Button(label="Foo")
button2 = Button(label="Bar")
button3 = Button(label="Baz")
p = figure(width=width)

show(column(row(button1,button2,button3, width=width),
            p))

from bokeh.io import show
from bokeh.models import Button
from bokeh.layouts import row, column
from bokeh.plotting import figure

width=400

button1 = Button(label="Foo")
button2 = Button(label="Bar")
button3 = Button(label="Baz", width=50)
p = figure(width=width)

show(column(row(button1,button2,button3, width=width),
            p))

⌁   Link to post

End of archived discussion · Replies are disabled