Skip to content

Commit

Permalink
Merge pull request #3504 from bokeh/hotfix/selection_histogram
Browse files Browse the repository at this point in the history
Fix selection histogram layout
  • Loading branch information
bryevdv committed Jan 3, 2016
2 parents 9ddffbb + 01ed27a commit 30f582b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion examples/plotting/server/selection_histogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,15 @@
vh1 = pv.quad(left=0, bottom=vedges[:-1], top=vedges[1:], right=vzeros, alpha=0.5, **LINE_ARGS)
vh2 = pv.quad(left=0, bottom=vedges[:-1], top=vedges[1:], right=vzeros, alpha=0.1, **LINE_ARGS)

layout = vplot(hplot(p, pv), hplot(ph, Paragraph()))
# NOTE: Version 0.11 has introduced auto spacing by default on VBox/HBox/vplot/hplot
# so for now we must tweak some spacing and borders to have it closely
# aligned.
pv.min_border_top = 80
pv.min_border_left = 0
ph.min_border_top = 10
ph.min_border_right = 10
p.min_border_right = 10
layout = vplot(hplot(p, pv), hplot(ph, Paragraph(width=200)), width=800, height=800)

# open a session to keep our local document in sync with server
session = push_session(curdoc())
Expand Down

0 comments on commit 30f582b

Please sign in to comment.