holoviews.element.geom module#
- class holoviews.element.geom.Geometry(data=None, kdims=None, vdims=None, **kwargs)[source]#
-
Geometry elements represent a collection of objects drawn in a 2D coordinate system. The two key dimensions correspond to the x- and y-coordinates in the 2D space, while the value dimensions may be used to control other visual attributes of the Geometry
Parameter Definitions
Parameters inherited from:
holoviews.core.dimension.LabelledData: labelholoviews.core.dimension.Dimensioned: cdimsholoviews.core.element.Element2D: extentsholoviews.core.data.Dataset: datatypegroup = String(constant=True, default='Geometry', label='Group')A string describing the data wrapped by the object.
kdims = List(bounds=(2, 2), constant=True, default=[Dimension('x'), Dimension('y')], label='Kdims')The key dimensions of a geometry represent the x- and y- coordinates in a 2D space.
vdims = List(bounds=(0, None), constant=True, default=[], label='Vdims')Value dimensions can be associated with a geometry.
- class holoviews.element.geom.Points(data=None, kdims=None, vdims=None, **kwargs)[source]#
Bases:
Selection2DExpr,GeometryPoints represents a set of coordinates in 2D space, which may optionally be associated with any number of value dimensions.
Parameter Definitions
Parameters inherited from:
holoviews.core.dimension.LabelledData: labelholoviews.core.dimension.Dimensioned: cdimsholoviews.core.element.Element2D: extentsholoviews.core.data.Dataset: datatypeholoviews.element.geom.Geometry: kdims, vdimsgroup = String(constant=True, default='Points', label='Group')A string describing the data wrapped by the object.
- class holoviews.element.geom.Rectangles(data=None, kdims=None, vdims=None, **kwargs)[source]#
Bases:
SelectionGeomExpr,GeometryRectangles represent a collection of axis-aligned rectangles in 2D space.
Parameter Definitions
Parameters inherited from:
holoviews.core.dimension.LabelledData: labelholoviews.core.dimension.Dimensioned: cdimsholoviews.core.element.Element2D: extentsholoviews.core.data.Dataset: datatypegroup = String(constant=True, default='Rectangles', label='Group')A string describing the data wrapped by the object.
kdims = List(bounds=(4, 4), constant=True, default=[Dimension('x0'), Dimension('y0'), Dimension('x1'), Dimension('y1')], label='Kdims')The key dimensions of the Rectangles element represent the bottom-left (x0, y0) and top right (x1, y1) coordinates of each box.
- class holoviews.element.geom.Segments(data=None, kdims=None, vdims=None, **kwargs)[source]#
Bases:
SelectionGeomExpr,GeometrySegments represent a collection of lines in 2D space.
Parameter Definitions
Parameters inherited from:
holoviews.core.dimension.LabelledData: labelholoviews.core.dimension.Dimensioned: cdimsholoviews.core.element.Element2D: extentsholoviews.core.data.Dataset: datatypegroup = String(constant=True, default='Segments', label='Group')A string describing the data wrapped by the object.
kdims = List(bounds=(4, 4), constant=True, default=[Dimension('x0'), Dimension('y0'), Dimension('x1'), Dimension('y1')], label='Kdims')Segments represent lines given by x- and y- coordinates in 2D space.
- class holoviews.element.geom.VectorField(data=None, kdims=None, vdims=None, **kwargs)[source]#
Bases:
Selection2DExpr,GeometryA VectorField represents a set of vectors in 2D space with an associated angle, as well as an optional magnitude and any number of other value dimensions. The angles are assumed to be defined in radians and by default the magnitude is assumed to be normalized to be between 0 and 1.
Methods
from_uv
Parameter Definitions
Parameters inherited from:
holoviews.core.dimension.LabelledData: labelholoviews.core.dimension.Dimensioned: cdimsholoviews.core.element.Element2D: extentsholoviews.core.data.Dataset: datatypegroup = String(constant=True, default='VectorField', label='Group')A string describing the data wrapped by the object.
vdims = List(bounds=(1, None), default=[Dimension('Angle'), Dimension('Magnitude')], label='Vdims')Value dimensions can be associated with a geometry.