holoviews.plotting.bokeh.sankey module#

class holoviews.plotting.bokeh.sankey.SankeyPlot(element, plot=None, **params)[source]#

Bases: GraphPlot

Parameter Definitions


Parameters inherited from:

holoviews.plotting.plot.DimensionedPlot: fontscale, show_title, normalize, projection

holoviews.plotting.plot.GenericElementPlot: apply_ranges, apply_extents, bgcolor, default_span, hooks, invert_axes, invert_xaxis, invert_yaxis, logx, logy, padding, show_grid, xaxis, yaxis, xlabel, ylabel, xlim, ylim, zlim, xrotation, yrotation

holoviews.plotting.bokeh.plot.BokehPlot: title, shared_datasource, title_format

holoviews.plotting.bokeh.element.ElementPlot: fontsize, xticks, yticks, toolbar, active_tools, align, apply_hard_bounds, autorange, border, aspect, backend_opts, data_aspect, frame_width, frame_height, min_width, min_height, max_width, max_height, margin, multi_y, scalebar, scalebar_range, scalebar_unit, scalebar_location, scalebar_label, scalebar_tool, scalebar_opts, subcoordinate_y, subcoordinate_scale, responsive, gridstyle, labelled, lod, show_frame, shared_axes, default_tools, hover_tooltips, hover_formatters, hover_mode, xformatter, yformatter

holoviews.plotting.bokeh.element.LegendPlot: legend_cols, legend_labels, legend_muted, legend_offset, legend_position, legend_opts

holoviews.plotting.bokeh.element.ColorbarPlot: color_levels, cformatter, clabel, clim, clim_percentile, cnorm, colorbar, colorbar_position, colorbar_opts, clipping_colors, cticks, logz, rescale_discrete_levels, symmetric

holoviews.plotting.bokeh.graphs.GraphPlot: tools, arrowhead_length, directed, selection_policy, inspection_policy, edge_color_index

show_legend = Boolean(default=False, label='Show legend')

Whether to show the values.

width = Integer(allow_None=True, bounds=(0, None), default=1000, inclusive_bounds=(True, True), label='Width')

The width of the component (in pixels). This can be either fixed or preferred width, depending on width sizing policy.

height = Integer(allow_None=True, bounds=(0, None), default=600, inclusive_bounds=(True, True), label='Height')

The height of the component (in pixels). This can be either fixed or preferred height, depending on height sizing policy.

color_index = ClassSelector(allow_None=True, class_=(<class 'str'>, <class 'int'>), default=2, label='Color index')

Index of the dimension from which the node labels will be drawn

labels = ClassSelector(allow_None=True, class_=(<class 'str'>, <class 'holoviews.util.transform.dim'>), label='Labels')

The dimension or dimension value transform used to draw labels from.

label_position = Selector(default='right', label='Label position', names={}, objects=['left', 'right', 'outer', 'inner'])

Whether node labels should be placed to the left, right, outer or inner.

show_values = Boolean(default=True, label='Show values')

Whether to show the values.

node_width = Number(default=15, inclusive_bounds=(True, True), label='Node width')

Width of the nodes.

node_padding = Integer(allow_None=True, inclusive_bounds=(True, True), label='Node padding')

Number of pixels of padding relative to the bounds.

iterations = Integer(default=32, inclusive_bounds=(True, True), label='Iterations')

Number of iterations to run the layout algorithm.

node_sort = Boolean(default=True, label='Node sort')

Sort nodes in ascending breadth.

label_index = ClassSelector(allow_None=True, class_=(<class 'str'>, <class 'int'>), default=2, label='Label index')

Index of the dimension from which the node labels will be drawn

get_data(element, ranges, style)[source]#

Returns the data from an element in the appropriate format for initializing or updating a ColumnDataSource and a dictionary which maps the expected keywords arguments of a glyph to the column in the datasource.

get_extents(element, ranges, range_type='combined', **kwargs)[source]#

Return the extents of the Sankey box