holoviews.plotting.mpl.chart3d module#
- class holoviews.plotting.mpl.chart3d.Path3DPlot(*args, **kwargs)[source]#
-
Allows plotting paths on a 3D axis.
Methods
init_artists(ax, plot_args, plot_kwargs)Initializes the artist based on the plot method declared on the plot.
update_handles(key, axis, element, ranges, style)Update the elements of the plot.
get_data
Parameter Definitions
Parameters inherited from:
holoviews.plotting.plot.DimensionedPlot: fontsize, fontscale, show_title, title, normalizeholoviews.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_frameholoviews.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, yticksholoviews.plotting.mpl.element.ElementPlot: apply_ticks, data_aspect, invert_zaxis, logz, xformatter, yformatter, zformatter, zlabel, zrotation, zticksholoviews.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, symmetricholoviews.plotting.mpl.path.PathPlot: show_legend, aspect, color_indexholoviews.plotting.mpl.chart3d.Plot3D: projection, bgcolor, show_grid, xaxis, yaxis, labelled, zaxis, azimuth, elevation, distance, disable_axes
- class holoviews.plotting.mpl.chart3d.Plot3D(*args, **kwargs)[source]#
Bases:
ColorbarPlotPlot3D provides a common baseclass for mplot3d based plots.
Parameter Definitions
Parameters inherited from:
holoviews.plotting.plot.DimensionedPlot: fontsize, fontscale, show_title, title, normalizeholoviews.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_frameholoviews.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, yticksholoviews.plotting.mpl.element.ElementPlot: apply_ticks, aspect, data_aspect, invert_zaxis, logz, xformatter, yformatter, zformatter, zlabel, zrotation, zticksholoviews.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, symmetricprojection = 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]#
-
Subclass of PointPlot allowing plotting of Points on a 3D axis, also allows mapping color and size onto a particular Dimension of the data.
Methods
update_handles(key, axis, element, ranges, style)Update the elements of the plot.
get_data
Parameter Definitions
Parameters inherited from:
holoviews.plotting.plot.DimensionedPlot: fontsize, fontscale, show_title, title, normalizeholoviews.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_frameholoviews.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, yticksholoviews.plotting.mpl.element.ElementPlot: apply_ticks, aspect, data_aspect, invert_zaxis, logz, xformatter, yformatter, zformatter, zlabel, zrotation, zticksholoviews.plotting.mpl.element.LegendPlot: show_legend, legend_cols, legend_labels, legend_position, legend_optsholoviews.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, symmetricholoviews.plotting.mpl.chart.PointPlot: scaling_method, scaling_factor, size_fnholoviews.plotting.mpl.chart3d.Plot3D: projection, bgcolor, show_grid, xaxis, yaxis, labelled, zaxis, azimuth, elevation, distance, disable_axescolor_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.
- class holoviews.plotting.mpl.chart3d.SurfacePlot(*args, **kwargs)[source]#
Bases:
Plot3DPlots 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.
Methods
init_artists(ax, plot_data, plot_kwargs)Initializes the artist based on the plot method declared on the plot.
get_data
Parameter Definitions
Parameters inherited from:
holoviews.plotting.plot.DimensionedPlot: fontsize, fontscale, show_title, title, normalizeholoviews.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_frameholoviews.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, yticksholoviews.plotting.mpl.element.ElementPlot: apply_ticks, aspect, data_aspect, invert_zaxis, logz, xformatter, yformatter, zformatter, zlabel, zrotation, zticksholoviews.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, symmetricholoviews.plotting.mpl.chart3d.Plot3D: projection, bgcolor, show_grid, xaxis, yaxis, labelled, zaxis, azimuth, elevation, distance, disable_axescolorbar = 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’.
- class holoviews.plotting.mpl.chart3d.TriSurfacePlot(*args, **kwargs)[source]#
Bases:
Plot3DPlots a trisurface given a TriSurface element, containing X, Y and Z coordinates.
Methods
get_data
Parameter Definitions
Parameters inherited from:
holoviews.plotting.plot.DimensionedPlot: fontsize, fontscale, show_title, title, normalizeholoviews.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_frameholoviews.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, yticksholoviews.plotting.mpl.element.ElementPlot: apply_ticks, aspect, data_aspect, invert_zaxis, logz, xformatter, yformatter, zformatter, zlabel, zrotation, zticksholoviews.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, symmetricholoviews.plotting.mpl.chart3d.Plot3D: projection, bgcolor, show_grid, xaxis, yaxis, labelled, zaxis, azimuth, elevation, distance, disable_axescolorbar = Boolean(default=False, label='Colorbar')Whether to add a colorbar to the plot.