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

Skip to content

Commit cf2ef39

Browse files
jklymakanntzer
authored andcommitted
Add an extra comment
1 parent 84448ca commit cf2ef39

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2410,6 +2410,8 @@ def handle_single_axis(scale, autoscaleon, shared_axes, interval,
24102410

24112411
bb = mtransforms.BboxBase.union(dl)
24122412
x0, x1 = getattr(bb, interval)
2413+
# If x0 and x1 are non finite, use the locator to figure out
2414+
# default limits.
24132415
locator = axis.get_major_locator()
24142416
x0, x1 = locator.nonsingular(x0, x1)
24152417

0 commit comments

Comments
 (0)