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

Skip to content

Commit 85a77b6

Browse files
Early ticks return path
1 parent decfbd1 commit 85a77b6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/matplotlib/axis.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,6 +1335,8 @@ def _update_ticks(self):
13351335
minor_ticks = []
13361336

13371337
ticks = [*major_ticks, *minor_ticks]
1338+
if not ticks:
1339+
return []
13381340

13391341
view_low, view_high = self.get_view_interval()
13401342
if view_low > view_high:

0 commit comments

Comments
 (0)