From fe8fb3b8e0ac528e3d6d7d1565b203c6d1b69aa0 Mon Sep 17 00:00:00 2001 From: Aaron Ayres Date: Wed, 9 Jun 2021 09:47:14 -0500 Subject: [PATCH] previously in _draw_overlay we called _draw_component which had a default value of None for component. Similarly _compute_tick_positions has a default value of None for other_component. In this case we can just not pass anything as it should be None --- chaco/axis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chaco/axis.py b/chaco/axis.py index e75774f99..9d81f9d19 100644 --- a/chaco/axis.py +++ b/chaco/axis.py @@ -292,7 +292,7 @@ def _draw_overlay(self, gc, view_bounds=None, mode="normal"): if not self._cache_valid: self._calculate_geometry() - self._compute_tick_positions(gc, component) + self._compute_tick_positions(gc) self._compute_labels(gc) with gc: