ScatterGraphic#

ScatterGraphic#

Constructor#

ScatterGraphic(data[, colors, ...])

Create a Scatter Graphic, 2d or 3d

Properties#

ScatterGraphic.alpha

The opacity of the graphic

ScatterGraphic.alpha_mode

How the alpha is handled by the renderer

ScatterGraphic.axes

ScatterGraphic.block_events

Used to block events for a graphic and prevent recursion.

ScatterGraphic.cmap

Control the cmap or cmap transform

ScatterGraphic.colors

Get or set the colors

ScatterGraphic.data

Get or set the graphic's data

ScatterGraphic.deleted

used to emit an event after the graphic is deleted

ScatterGraphic.edge_colors

edge_colors if mode is 'marker'

ScatterGraphic.edge_width

Get or set the edge_width if mode is 'markers'

ScatterGraphic.event_handlers

Registered event handlers.

ScatterGraphic.image

Get or set the image data, returns None if scatter plot mode is not 'image'

ScatterGraphic.markers

markers if mode is 'marker'

ScatterGraphic.mode

scatter point display mode

ScatterGraphic.name

Graphic name

ScatterGraphic.offset

[x, y, z]

ScatterGraphic.point_rotation_mode

point rotation mode, read-only, one of 'uniform', 'vertex', or 'curve'

ScatterGraphic.point_rotations

rotation of each point, in radians, if point_rotation_mode is 'uniform' or 'vertex'

ScatterGraphic.right_click_menu

ScatterGraphic.rotation

Orientation of the graphic as a quaternion

ScatterGraphic.scale

(x, y, z) scaling factor

ScatterGraphic.size_space

The coordinate space in which the size is expressed ('screen', 'world', 'model')

ScatterGraphic.sizes

Get or set the scatter point size(s)

ScatterGraphic.supported_events

events supported by this graphic

ScatterGraphic.tooltip_format

set a custom tooltip format function which takes a pick_info dict and returns a str to be displayed in the tooltip

ScatterGraphic.visible

Whether the graphic is visible

ScatterGraphic.world_object

Associated pygfx WorldObject.

Methods#

ScatterGraphic.add_axes()

Add axes onto this Graphic

ScatterGraphic.add_event_handler(*args)

Register an event handler.

ScatterGraphic.clear_event_handlers()

clear all event handlers added to this graphic

ScatterGraphic.format_pick_info(pick_info)

Takes a pygfx.PointerEvent and returns formatted pick info.

ScatterGraphic.map_model_to_world(position)

map position from model (data) space to world space, basically applies the world affine transform

ScatterGraphic.map_world_to_model(position)

map position from world space to model (data) space, basically applies the inverse world affine transform

ScatterGraphic.remove_event_handler(...)

remove a registered event handler

ScatterGraphic.rotate(alpha[, axis])

Rotate the Graphic with respect to the world.