Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8104b16

Browse files
committed
FIX: remove AssertionError check
1 parent 2b4887b commit 8104b16

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

lib/matplotlib/axis.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,13 +1045,8 @@ def _update_ticks(self, renderer):
10451045
tick.update_position(loc)
10461046
tick.set_label1(label)
10471047
tick.set_label2(label)
1048-
try:
1049-
loct = self.get_transform().transform(loc)
1050-
except AssertionError:
1051-
loct = None
1052-
continue
1053-
if ((loct is None) or
1054-
(not mtransforms.interval_contains_close(inter, loct))):
1048+
loct = self.get_transform().transform(loc)
1049+
if not mtransforms.interval_contains_close(inter, loct):
10551050
continue
10561051
ticks_to_draw.append(tick)
10571052

0 commit comments

Comments
 (0)