Keep a fixed aspect ratio when zooming with box tool

Yes you can set plot.match_aspect = True. Note that both the ranges of the plot have to be auto-ranging DataRange1d instances (the default). This is because, if you set fixed range values, Bokeh assumes you know what you want, and honors those setting (i,e. it won’t override your explicit settings in order to adjust the ranges to match the screen aspect)

1 Like