Python bokeh.plotting.gridplot() Examples

The following are 2 code examples of bokeh.plotting.gridplot(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module bokeh.plotting , or try the search function .
Example #1
Source File: plot_stem.py    From tick with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def __stems_bokeh(ys: list, titles: list, sync_axes, fig_size):
    from bokeh.plotting import gridplot

    figs = []
    x_range = None
    y_range = None
    for idx, (y, title) in enumerate(zip(ys, titles)):
        fig = __stem_bokeh(y, title=title, x_range=x_range, y_range=y_range,
                           fig_size=fig_size)
        figs.append(fig)
        if idx == 0 and sync_axes:
            x_range = fig.x_range
            y_range = fig.y_range
    return gridplot([[e] for e in figs]) 
Example #2
Source File: plot.py    From arlpy with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def __exit__(self, *args):
        global _figures, _figsize
        if len(_figures) > 1 or len(_figures[0]) > 0:
            f = _bplt.gridplot(_figures, merge_tools=False)
            if _static_images:
                _show_static_images(f)
            else:
                _process_canvas([])
                _bplt.show(f)
                _process_canvas([item for sublist in _figures for item in sublist])
        _figures = None
        _figsize = self.ofigsize