LineCollection#

LineCollection#

Constructor#

LineCollection(data[, thickness, colors, ...])

Create a collection of LineGraphic

Properties#

LineCollection.axes

LineCollection.block_events

Used to block events for a graphic and prevent recursion.

LineCollection.cmap

Get or set a cmap along the line collection.

LineCollection.colors

get or set colors of lines in the collection

LineCollection.data

get or set data of lines in the collection

LineCollection.deleted

used to emit an event after the graphic is deleted

LineCollection.event_handlers

Registered event handlers.

LineCollection.graphics

The Graphics within this collection.

LineCollection.metadatas

get or set the metadata of the individual graphics in the collection

LineCollection.name

Graphic name

LineCollection.names

get or set the name of the individual graphics in the collection

LineCollection.offset

[x, y, z]

LineCollection.offsets

get or set the offset of the individual graphics in the collection

LineCollection.right_click_menu

LineCollection.rotation

Orientation of the graphic as a quaternion

LineCollection.rotations

get or set the rotation of the individual graphics in the collection

LineCollection.supported_events

events supported by this graphic

LineCollection.thickness

get or set the thickness of the lines

LineCollection.visible

Whether the graphic is visible

LineCollection.visibles

get or set the offsets of the individual graphics in the collection

LineCollection.world_object

Associated pygfx WorldObject.

Methods#

LineCollection.add_axes()

Add axes onto this Graphic

LineCollection.add_event_handler(*args)

Register an event handler.

LineCollection.add_graphic(graphic)

Add a graphic to the collection.

LineCollection.add_linear_region_selector([...])

Add a LinearRegionSelector.

LineCollection.add_linear_selector([...])

Adds a linear selector.

LineCollection.add_rectangle_selector([...])

Add a RectangleSelector.

LineCollection.clear_event_handlers()

clear all event handlers added to this graphic

LineCollection.remove_event_handler(...)

remove an event handler

LineCollection.remove_graphic(graphic)

Remove a graphic from the collection.

LineCollection.rotate(alpha[, axis])

Rotate the Graphic with respect to the world.

LineCollection.share_property(feature)

LineCollection.unshare_property(feature)