holoviews.plotting.plotly.chart3d module#
- class holoviews.plotting.plotly.chart3d.Chart3DPlot(element, plot=None, **params)[source]#
Bases:
ElementPlot
Parameter Definitions
Parameters inherited from:
holoviews.plotting.plot.DimensionedPlot
: fontsize, fontscale, show_title, title, normalizeholoviews.plotting.plot.GenericElementPlot
: apply_ranges, apply_extents, default_span, hooks, padding, show_grid, xlabel, ylabel, xlim, ylim, zlim, xrotation, yrotationholoviews.plotting.plotly.element.ElementPlot
: bgcolor, invert_axes, invert_xaxis, invert_yaxis, logx, logy, show_legend, xaxis, yaxis, xticks, yticks, invert_zaxis, labelled, logz, margins, responsive, zlabelprojection = String(default='3d', label='Projection')
Allows supplying a custom projection to transform the axis coordinates during display. Example projections include ‘3d’ and ‘polar’ projections supported by some backends. Depending on the backend custom, projection objects may be supplied.
width = Integer(default=500, inclusive_bounds=(True, True), label='Width')
height = Integer(default=500, inclusive_bounds=(True, True), label='Height')
aspect = Parameter(default='cube', label='Aspect')
The aspect ratio mode of the plot. By default, a plot may select its own appropriate aspect ratio but sometimes it may be necessary to force a square aspect ratio (e.g. to display the plot as an element of a grid). The modes ‘auto’ and ‘equal’ correspond to the axis modes of the same name in matplotlib, a numeric value may also be passed.
zticks = Parameter(allow_None=True, label='Zticks')
Ticks along z-axis specified as an integer, explicit list of tick locations, list of tuples containing the locations.
camera_angle = NumericTuple(default=(0.2, 0.5, 0.1, 0.2), label='Camera angle', length=4)
camera_position = NumericTuple(default=(0.1, 0, -0.1), label='Camera position', length=3)
camera_zoom = Integer(default=3, inclusive_bounds=(True, True), label='Camera zoom')
- class holoviews.plotting.plotly.chart3d.Path3DPlot(element, plot=None, **params)[source]#
Bases:
Chart3DPlot
,CurvePlot
Parameter Definitions
Parameters inherited from:
holoviews.plotting.plot.DimensionedPlot
: fontsize, fontscale, show_title, title, normalizeholoviews.plotting.plot.GenericElementPlot
: apply_ranges, apply_extents, default_span, hooks, show_grid, xlabel, ylabel, xlim, ylim, zlim, xrotation, yrotationholoviews.plotting.plotly.element.ElementPlot
: bgcolor, invert_axes, invert_xaxis, invert_yaxis, logx, logy, show_legend, xaxis, yaxis, xticks, yticks, invert_zaxis, labelled, logz, margins, responsive, zlabelholoviews.plotting.plotly.element.ColorbarPlot
: clim, clim_percentile, colorbar, color_levels, colorbar_opts, symmetricholoviews.plotting.plotly.chart.CurvePlot
: padding, interpolationholoviews.plotting.plotly.chart3d.Chart3DPlot
: projection, width, height, aspect, zticks, camera_angle, camera_position, camera_zoom
- class holoviews.plotting.plotly.chart3d.Scatter3DPlot(element, plot=None, **params)[source]#
Bases:
Chart3DPlot
,ScatterPlot
Parameter Definitions
Parameters inherited from:
holoviews.plotting.plot.DimensionedPlot
: fontsize, fontscale, show_title, title, normalizeholoviews.plotting.plot.GenericElementPlot
: apply_ranges, apply_extents, default_span, hooks, padding, show_grid, xlabel, ylabel, xlim, ylim, zlim, xrotation, yrotationholoviews.plotting.plotly.element.ElementPlot
: bgcolor, invert_axes, invert_xaxis, invert_yaxis, logx, logy, show_legend, xaxis, yaxis, xticks, yticks, invert_zaxis, labelled, logz, margins, responsive, zlabelholoviews.plotting.plotly.element.ColorbarPlot
: clim, clim_percentile, colorbar, color_levels, colorbar_opts, symmetricholoviews.plotting.plotly.chart.ScatterPlot
: color_indexholoviews.plotting.plotly.chart3d.Chart3DPlot
: projection, width, height, aspect, zticks, camera_angle, camera_position, camera_zoom
- class holoviews.plotting.plotly.chart3d.SurfacePlot(element, plot=None, **params)[source]#
Bases:
Chart3DPlot
,ColorbarPlot
Parameter Definitions
Parameters inherited from:
holoviews.plotting.plot.DimensionedPlot
: fontsize, fontscale, show_title, title, normalizeholoviews.plotting.plot.GenericElementPlot
: apply_ranges, apply_extents, default_span, hooks, padding, show_grid, xlabel, ylabel, xlim, ylim, zlim, xrotation, yrotationholoviews.plotting.plotly.element.ElementPlot
: bgcolor, invert_axes, invert_xaxis, invert_yaxis, logx, logy, show_legend, xaxis, yaxis, xticks, yticks, invert_zaxis, labelled, logz, margins, responsive, zlabelholoviews.plotting.plotly.element.ColorbarPlot
: clim, clim_percentile, colorbar, color_levels, colorbar_opts, symmetricholoviews.plotting.plotly.chart3d.Chart3DPlot
: projection, width, height, aspect, zticks, camera_angle, camera_position, camera_zoom
- class holoviews.plotting.plotly.chart3d.TriSurfacePlot(element, plot=None, **params)[source]#
Bases:
Chart3DPlot
,ColorbarPlot
Parameter Definitions
Parameters inherited from:
holoviews.plotting.plot.DimensionedPlot
: fontsize, fontscale, show_title, title, normalizeholoviews.plotting.plot.GenericElementPlot
: apply_ranges, apply_extents, default_span, hooks, padding, show_grid, xlabel, ylabel, xlim, ylim, zlim, xrotation, yrotationholoviews.plotting.plotly.element.ElementPlot
: bgcolor, invert_axes, invert_xaxis, invert_yaxis, logx, logy, show_legend, xaxis, yaxis, xticks, yticks, invert_zaxis, labelled, logz, margins, responsive, zlabelholoviews.plotting.plotly.element.ColorbarPlot
: clim, clim_percentile, colorbar, color_levels, colorbar_opts, symmetricholoviews.plotting.plotly.chart3d.Chart3DPlot
: projection, width, height, aspect, zticks, camera_angle, camera_position, camera_zoom- init_graph(datum, options, index=0, **kwargs)[source]#
Initialize the plotly components that will represent the element
Parameters#
- datumdict
An element of the data list returned by the get_data method
- optionsdict
Graph options that were returned by the graph_options method
- indexint
Index of datum in the original list returned by the get_data method
Returns#
- dict
Dictionary of the plotly components that represent the element. Keys may include:
‘traces’: List of trace dicts
‘annotations’: List of annotations dicts
‘images’: List of image dicts
‘shapes’: List of shape dicts