holoviews.plotting.mpl.sankey module#

class holoviews.plotting.mpl.sankey.SankeyPlot(*args, **kwargs)[source]#

Bases: GraphPlot

Parameter Definitions


Parameters inherited from:

holoviews.plotting.plot.DimensionedPlot: fontsize, fontscale, show_title, title, normalize

holoviews.plotting.mpl.plot.MPLPlot: projection, backend_opts, fig_alpha, fig_bounds, fig_inches, fig_latex, fig_rcparams, fig_size, initial_hooks, sublabel_format, sublabel_offset, sublabel_position, sublabel_size, sublabel_skip, show_frame

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

holoviews.plotting.mpl.element.ElementPlot: apply_ticks, aspect, data_aspect, invert_zaxis, labelled, logz, xformatter, yformatter, zformatter, zaxis, zlabel, zrotation, zticks

holoviews.plotting.mpl.element.ColorbarPlot: clabel, clim, clim_percentile, cformatter, colorbar, colorbar_opts, color_levels, cnorm, clipping_colors, cbar_padding, cbar_ticks, cbar_width, cbar_extend, rescale_discrete_levels, symmetric

holoviews.plotting.mpl.graphs.GraphPlot: arrowhead_length, directed, edge_color_index

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.

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

Whether to show the values.

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

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

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_extents(element, ranges, range_type='combined', **kwargs)[source]#

A Chord plot is always drawn on a unit circle.

init_artists(ax, plot_args, plot_kwargs)[source]#

Initializes the artist based on the plot method declared on the plot.

update_handles(key, axis, element, ranges, style)[source]#

Update the elements of the plot.