add_subplot#

Cursor.add_subplot(subplot, transform=None)[source]#

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

Parameters:
  • subplot (Subplot) – subplot to add

  • transform (Callable[[tuple[float, float]], tuple[float, float]] | None) – a transform function that takes the cursor’s position and returns a transformed position at which the cursor will visually appear.

Examples#

Cursor transform

Cursor transform

Cursor tool

Cursor tool

Cursor tool, marker mode

Cursor tool, marker mode