holoviews.plotting.mpl.graphs module#

class holoviews.plotting.mpl.graphs.ChordPlot(*args, **kwargs)[source]#

Bases: ChordMixin, 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, color_index, edge_color_index

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_index = ClassSelector(allow_None=True, class_=(<class 'str'>, <class 'int'>), label='Label index')

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

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.

class holoviews.plotting.mpl.graphs.GraphPlot(*args, **kwargs)[source]#

Bases: GraphMixin, ColorbarPlot

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

arrowhead_length = Number(default=0.025, inclusive_bounds=(True, True), label='Arrowhead length')

If directed option is enabled this determines the length of the arrows as fraction of the overall extent of the graph.

directed = Boolean(default=False, label='Directed')

Whether to draw arrows on the graph edges to indicate the directionality of each edge.

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

Deprecated in favor of color style mapping, e.g. node_color=dim(‘color’)

edge_color_index = ClassSelector(allow_None=True, class_=(<class 'str'>, <class 'int'>), label='Edge color index')

Deprecated in favor of color style mapping, e.g. edge_color=dim(‘color’)

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.

class holoviews.plotting.mpl.graphs.TriMeshPlot(*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, color_index, edge_color_index

filled = Boolean(default=False, label='Filled')

Whether the triangles should be drawn as filled.