Skip to content

Commit e5afb2a

Browse files
committed
Merge branch 'main' into ndwidget
2 parents 6cdcb17 + 5721c9b commit e5afb2a

5 files changed

Lines changed: 4 additions & 4 deletions

File tree

fastplotlib/graphics/image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ def add_polygon_selector(
466466
467467
Parameters
468468
----------
469-
selection: List of positions, optional
469+
selection: list[tuple[float, float]], optional
470470
Initial points for the polygon. If not given or None, you'll start drawing the selection (clicking adds points to the polygon).
471471
472472
"""

fastplotlib/graphics/line.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ def add_polygon_selector(
302302
303303
Parameters
304304
----------
305-
selection: List of positions, optional
305+
selection: list[tuple[float, float]], optional
306306
Initial points for the polygon. If not given or None, you'll start drawing the selection (clicking adds points to the polygon).
307307
"""
308308

fastplotlib/graphics/line_collection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ def add_polygon_selector(
488488
489489
Parameters
490490
----------
491-
selection: List of positions, optional
491+
selection: list[tuple[float, float]], optional
492492
Initial points for the polygon. If not given or None, you'll start drawing the selection (clicking adds points to the polygon).
493493
"""
494494
bbox = self.world_object.get_world_bounding_box()

fastplotlib/tools/_cursor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def position(self, pos: tuple[float, float]):
265265
): # some graphics don't support tooltips, ex: Text
266266
if graphic.tooltip_format is not None:
267267
# custom formatter
268-
info = graphic.tooltip_format
268+
info = graphic.tooltip_format(pick_info)
269269
else:
270270
# default formatter for this graphic
271271
info = graphic.format_pick_info(pick_info)
File renamed without changes.

0 commit comments

Comments
 (0)