from ..plot import (DimensionedPlot, GenericCompositePlot, GenericLayoutPlot, GenericElementPlot) from ..util import get_dynamic_mode, initialize_sampled from .renderer import BokehRenderer from .util import (bokeh_version, layout_padding, pad_plots, filter_toolboxes, make_axis) if bokeh_version >= '0.12': from bokeh.layouts import gridplot else: from bokeh.models import GridPlot as BokehGridPlot from bokeh.plotting.helpers import _known_tools as known_tools TOOLS = { name: tool if isinstance(tool, basestring) else type(tool()) for name, tool in known_tools.items() } class BokehPlot(DimensionedPlot): """ Plotting baseclass for the Bokeh backends, implementing the basic plotting interface for Bokeh based plots. """ width = param.Integer(default=300, doc=""" Width of the plot in pixels""") height = param.Integer(default=300, doc="""
from ...core import (OrderedDict, CompositeOverlay, Store, GridMatrix, AdjointLayout, NdLayout, Empty, GridSpace, HoloMap, Element) from ...core.options import Compositor from ...core.util import basestring, wrap_tuple, unique_iterator from ...element import Histogram from ..plot import (DimensionedPlot, GenericCompositePlot, GenericLayoutPlot, GenericElementPlot) from ..util import attach_streams from .util import (layout_padding, pad_plots, filter_toolboxes, make_axis, update_shared_sources, empty_plot) from bokeh.layouts import gridplot from bokeh.plotting.helpers import _known_tools as known_tools TOOLS = {name: tool if isinstance(tool, basestring) else type(tool()) for name, tool in known_tools.items()} class BokehPlot(DimensionedPlot): """ Plotting baseclass for the Bokeh backends, implementing the basic plotting interface for Bokeh based plots. """ width = param.Integer(default=300, doc=""" Width of the plot in pixels""") height = param.Integer(default=300, doc=""" Height of the plot in pixels""") sizing_mode = param.ObjectSelector(default='fixed',