Skip to content

Commit 41b42a1

Browse files
committed
@NelleV's review actions.
1 parent 24cf375 commit 41b42a1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/matplotlib/dates.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,11 @@ def _get_interval(self):
577577
return 1
578578

579579
def nonsingular(self, vmin, vmax):
580+
"""
581+
Given the proposed upper and lower extent, adjust the range
582+
if it is too close to being singlular (i.e. a range of ~0).
583+
584+
"""
580585
unit = self._get_unit()
581586
interval = self._get_interval()
582587
if abs(vmax - vmin) < 1e-6:
@@ -800,7 +805,7 @@ def __call__(self):
800805

801806
def nonsingular(self, vmin, vmax):
802807
# whatever is thrown at us, we can scale the unit.
803-
# But default nonsigular date plots at an ~4 year period.
808+
# But default nonsingular date plots at an ~4 year period.
804809
if vmin == vmax:
805810
vmin = vmin - 365 * 2
806811
vmax = vmax + 365 * 2

0 commit comments

Comments
 (0)