Hi folks,
I’m trying to build up an application that requires the user to be able to add new plots to the layout, according to various settings controlled by Bokehs widgets. I have been able to achieve this, but the layout keeps getting messed up when plots are added in a certain sequence to the layout. I’ve tried to produce a simplified version of the code to reproduce the problem. You can access that here.
To reproduce the bad behaviour that I am observing:
-
run the script with bokeh server
-
press the ‘add below’ button and observe the new plot added below the first, then
-
press the ‘add across’ button and observe the new plot added to the right of the first.
The second plot, which had been added when the ‘add below’ button was pressed, becomes squashed to a height of 0. I’ve tried all kinds of thing playing around with the heights of the row and column objects, and tried switching to a layout maintained with grid plot, but have always run into the same issue.
Has anyone ever seen this before? Do you have suggestions on what I might be doing wrong, and/or how I can fix this problem?
Thanks,
Toby
Bokeh version: 0.12.3
Python version: 3.5.1 (same behaviour observed on 2.7.10)
OS: Mac OSX 10.11.6 (El Capitan)
Browser: Safari 10.0.1