holoviews.plotting.mpl.chart3d module#

class holoviews.plotting.mpl.chart3d.Path3DPlot(*args, **kwargs)[source]#

Bases: Plot3D, PathPlot

Allows plotting paths on a 3D axis.

Parameter Definitions


Parameters inherited from:

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

holoviews.plotting.mpl.plot.MPLPlot: 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, default_span, hooks, invert_axes, invert_xaxis, invert_yaxis, logx, logy, padding, xlabel, ylabel, xlim, ylim, zlim, xrotation, yrotation, xticks, yticks

holoviews.plotting.mpl.element.ElementPlot: apply_ticks, data_aspect, invert_zaxis, logz, xformatter, yformatter, zformatter, 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.path.PathPlot: show_legend, aspect, color_index

holoviews.plotting.mpl.chart3d.Plot3D: projection, bgcolor, show_grid, xaxis, yaxis, labelled, zaxis, azimuth, elevation, distance, disable_axes

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.chart3d.Plot3D(*args, **kwargs)[source]#

Bases: ColorbarPlot

Plot3D provides a common baseclass for mplot3d based plots.

Parameter Definitions


Parameters inherited from:

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

holoviews.plotting.mpl.plot.MPLPlot: 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, default_span, hooks, invert_axes, invert_xaxis, invert_yaxis, logx, logy, padding, show_legend, xlabel, ylabel, xlim, ylim, zlim, xrotation, yrotation, xticks, yticks

holoviews.plotting.mpl.element.ElementPlot: apply_ticks, aspect, data_aspect, invert_zaxis, logz, xformatter, yformatter, zformatter, 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

projection = Selector(default='3d', label='Projection', names={}, objects=['3d'])

The projection of the matplotlib axis.

bgcolor = String(default='white', label='Bgcolor')

Background color of the axis.

show_grid = Boolean(default=True, label='Show grid')

Whether to draw a grid in the figure.

xaxis = Selector(default='fixed', label='Xaxis', names={}, objects=['fixed', None])

Whether and where to display the xaxis.

yaxis = Selector(default='fixed', label='Yaxis', names={}, objects=['fixed', None])

Whether and where to display the yaxis.

labelled = List(bounds=(0, None), default=['x', 'y', 'z'], label='Labelled')

Whether to plot the ‘x’, ‘y’ and ‘z’ labels.

zaxis = Selector(default='fixed', label='Zaxis', names={}, objects=['fixed', None])

Whether and where to display the yaxis.

azimuth = Integer(bounds=(-180, 180), default=-60, inclusive_bounds=(True, True), label='Azimuth')

Azimuth angle in the x,y plane.

elevation = Integer(bounds=(0, 180), default=30, inclusive_bounds=(True, True), label='Elevation')

Elevation angle in the z-axis.

distance = Integer(bounds=(7, 15), default=10, inclusive_bounds=(True, True), label='Distance')

Distance from the plotted object.

disable_axes = Boolean(default=False, label='Disable axes')

Disable all axes.

class holoviews.plotting.mpl.chart3d.Scatter3DPlot(*args, **kwargs)[source]#

Bases: Plot3D, PointPlot

Subclass of PointPlot allowing plotting of Points on a 3D axis, also allows mapping color and size onto a particular Dimension of the data.

Parameter Definitions


Parameters inherited from:

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

holoviews.plotting.mpl.plot.MPLPlot: 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, default_span, hooks, invert_axes, invert_xaxis, invert_yaxis, logx, logy, padding, xlabel, ylabel, xlim, ylim, zlim, xrotation, yrotation, xticks, yticks

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

holoviews.plotting.mpl.element.LegendPlot: show_legend, legend_cols, legend_labels, legend_position, legend_opts

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.chart.PointPlot: scaling_method, scaling_factor, size_fn

holoviews.plotting.mpl.chart3d.Plot3D: projection, bgcolor, show_grid, xaxis, yaxis, labelled, zaxis, azimuth, elevation, distance, disable_axes

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

Index of the dimension from which the color will the drawn

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

Index of the dimension from which the sizes will the drawn.

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

Update the elements of the plot.

class holoviews.plotting.mpl.chart3d.SurfacePlot(*args, **kwargs)[source]#

Bases: Plot3D

Plots surfaces wireframes and contours in 3D space. Provides options to switch the display type via the plot_type parameter has support for a number of styling options including strides and colors.

Parameter Definitions


Parameters inherited from:

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

holoviews.plotting.mpl.plot.MPLPlot: 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, default_span, hooks, invert_axes, invert_xaxis, invert_yaxis, logx, logy, padding, show_legend, xlabel, ylabel, xlim, ylim, zlim, xrotation, yrotation, xticks, yticks

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

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

holoviews.plotting.mpl.chart3d.Plot3D: projection, bgcolor, show_grid, xaxis, yaxis, labelled, zaxis, azimuth, elevation, distance, disable_axes

colorbar = Boolean(default=False, label='Colorbar')

Whether to add a colorbar to the plot.

plot_type = Selector(default='surface', label='Plot type', names={}, objects=['surface', 'wireframe', 'contour'])

Specifies the type of visualization for the Surface object. Valid values are ‘surface’, ‘wireframe’ and ‘contour’.

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

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

class holoviews.plotting.mpl.chart3d.TriSurfacePlot(*args, **kwargs)[source]#

Bases: Plot3D

Plots a trisurface given a TriSurface element, containing X, Y and Z coordinates.

Parameter Definitions


Parameters inherited from:

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

holoviews.plotting.mpl.plot.MPLPlot: 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, default_span, hooks, invert_axes, invert_xaxis, invert_yaxis, logx, logy, padding, show_legend, xlabel, ylabel, xlim, ylim, zlim, xrotation, yrotation, xticks, yticks

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

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

holoviews.plotting.mpl.chart3d.Plot3D: projection, bgcolor, show_grid, xaxis, yaxis, labelled, zaxis, azimuth, elevation, distance, disable_axes

colorbar = Boolean(default=False, label='Colorbar')

Whether to add a colorbar to the plot.