holoviews.element.chart3d module#

class holoviews.element.chart3d.Path3D(data=None, kdims=None, vdims=None, **kwargs)[source]#

Bases: Element3D, Path

Path3D is a 3D element representing a line through 3D space. The key dimensions represent the position of each coordinate along the x-, y- and z-axis while the value dimensions can optionally supply additional information.

Parameter Definitions


Parameters inherited from:

group = String(constant=True, default='Path3D', label='Group')

A string describing the data wrapped by the object.

kdims = List(bounds=(3, 3), default=[Dimension('x'), Dimension('y'), Dimension('z')], label='Kdims')

The key dimensions of a geometry represent the x- and y- coordinates in a 2D space.

vdims = List(bounds=(0, None), default=[], label='Vdims')

Path3D can have optional value dimensions.

class holoviews.element.chart3d.Scatter3D(data=None, kdims=None, vdims=None, **kwargs)[source]#

Bases: Element3D, Points

Scatter3D is a 3D element representing the position of a collection of coordinates in a 3D space. The key dimensions represent the position of each coordinate along the x-, y- and z-axis.

Scatter3D is not available for the default Bokeh backend.

Example - Matplotlib#

import holoviews as hv
from bokeh.sampledata.iris import flowers

hv.extension("matplotlib")

hv.Scatter3D(
    flowers, kdims=["sepal_length", "sepal_width", "petal_length"]
).opts(
    color="petal_width",
    alpha=0.7,
    size=5,
    cmap="fire",
    marker='^'
)

Example - Plotly#

import holoviews as hv
from bokeh.sampledata.iris import flowers

hv.extension("plotly")

hv.Scatter3D(
    flowers, kdims=["sepal_length", "sepal_width", "petal_length"]
).opts(
    color="petal_width",
    alpha=0.7,
    size=5,
    cmap="Portland",
    colorbar=True,
    marker="circle",
)

Parameter Definitions


Parameters inherited from:

group = String(constant=True, default='Scatter3D', label='Group')

A string describing the data wrapped by the object.

kdims = List(bounds=(3, 3), default=[Dimension('x'), Dimension('y'), Dimension('z')], label='Kdims')

The key dimensions of a geometry represent the x- and y- coordinates in a 2D space.

vdims = List(bounds=(0, None), default=[], label='Vdims')

Scatter3D can have optional value dimensions, which may be mapped onto color and size.

class holoviews.element.chart3d.Surface(data=None, kdims=None, vdims=None, **kwargs)[source]#

Bases: Image, Element3D

A Surface represents a regularly sampled 2D grid with associated values defining the height along the z-axis. The key dimensions of a Surface represent the 2D coordinates along the x- and y-axes while the value dimension declares the height at each grid location.

The data of a Surface is usually defined as a 2D array of values and either a bounds tuple defining the extent in the 2D space or explicit x- and y-coordinate arrays.

Parameter Definitions


Parameters inherited from:

group = String(constant=True, default='Surface', label='Group')

A string describing the data wrapped by the object.

kdims = List(bounds=(2, 2), default=[Dimension('x'), Dimension('y')], label='Kdims')

The Surface x and y dimensions of the space defined by the supplied extent.

vdims = List(bounds=(1, 1), default=[Dimension('z')], label='Vdims')

The Surface height dimension.

extents = Tuple(default=(None, None, None, None, None, None), label='Extents', length=6)

Allows overriding the extents of the Element in 3D space defined as (xmin, ymin, zmin, xmax, ymax, zmax).

class holoviews.element.chart3d.TriSurface(data=None, kdims=None, vdims=None, **kwargs)[source]#

Bases: Element3D, Points

TriSurface represents a set of coordinates in 3D space which define a surface via a triangulation algorithm (usually Delauney triangulation). They key dimensions of a TriSurface define the position of each point along the x-, y- and z-axes, while value dimensions can provide additional information about each point.

Parameter Definitions


Parameters inherited from:

group = String(constant=True, default='TriSurface', label='Group')

A string describing the data wrapped by the object.

kdims = List(bounds=(3, 3), default=[Dimension('x'), Dimension('y'), Dimension('z')], label='Kdims')

The key dimensions of a TriSurface represent the 3D coordinates of each point.

vdims = List(bounds=(0, None), default=[], label='Vdims')

The value dimensions of a TriSurface can provide additional information about each 3D coordinate.