-
-
Notifications
You must be signed in to change notification settings - Fork 404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed bokeh LayoutPlot bugs #2740
Conversation
acc3a35
to
cb4fa14
Compare
Ready to review and merge. Also just as a quick note, while I didn't add many new unit tests here there are a number of unit tests for bokeh layouts which are unchanged. Additionally I wrote a little snippet to generate random layouts with combinations of elements and AdjointLayouts, which I tested heavily (must have run it several hundred times to confirm things were working). |
Why do I feel deja vu? ;-p To be fair it has always been very tricky code and I am always happy to see it refactored and improved. I've had to restart a test build for what I assume was a transient but otherwise I am happy to merge. The only thing I would ask you to consider is whether there is another unit test or two you could add - the more unit tests the better given how tricky it is to get right! |
I think this code has been around since I first wrote the bokeh backend, so it has actually held up surprisingly well, unlike the matplotlib version.
Added a unit test for the tabs issue, layouts themselves have enough unit tests covering them. |
Thanks. I'll merge when the tests go green. |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Turns out that the bokeh LayoutPlot implementation was wrong in all kinds of subtle ways so I've completely rewritten the implementation from scratch. The main issue was that AdjointLayout plots were not correctly positioned on the grid. Secondly when enabling
tabs
AdjointLayout plots were split across multiple tabs.None
Tabs #2568