From ae0c6a83bf50b5bdb45aff18e46c17054a805e56 Mon Sep 17 00:00:00 2001 From: Aaron Ayres Date: Wed, 7 Jul 2021 13:03:03 -0500 Subject: [PATCH] fix hittest_tool.py example --- chaco/examples/demo/basic/hittest_tool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chaco/examples/demo/basic/hittest_tool.py b/chaco/examples/demo/basic/hittest_tool.py index c1d549646..429552b04 100644 --- a/chaco/examples/demo/basic/hittest_tool.py +++ b/chaco/examples/demo/basic/hittest_tool.py @@ -53,7 +53,7 @@ def normal_mouse_move(self, event): def overlay(self, plot, gc, view_bounds=None, mode="normal"): # If we have a point, draw it to the screen as a small square if self.pt is not None: - x, y = plot.map_screen(self.pt) + x, y = plot.map_screen(self.pt)[0] gc.draw_rect((int(x) - 2, int(y) - 2, 4, 4))