Cursor#

Cursor#

Constructor#

Cursor([mode, size, color, marker, ...])

A cursor that indicates the same position in world-space across subplots.

Properties#

Cursor.alpha

cursor alpha value

Cursor.color

cursor color

Cursor.edge_color

cursor marker edge color, if mode is 'marker'

Cursor.edge_width

cursor marker edge width, if mode is 'marker'

Cursor.enabled

enable/disable the cursor, if False the cursor will not respond to mouse pointer events

Cursor.marker

cursor marker shape, if mode is 'marker'

Cursor.mode

cursor mode, one of 'crosshair' or 'marker'

Cursor.position

(x, y) position in world space

Cursor.size

size of marker or crosshair line thickness

Cursor.size_space

interpret cursor size in screen or world space

Methods#

Cursor.add_subplot(subplot[, transform])

Add a subplot to this cursor, with an optional position transform function

Cursor.clear()

remove all subplots

Cursor.remove_subplot(subplot)

remove a subplot