We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24cf375 commit 41b42a1Copy full SHA for 41b42a1
lib/matplotlib/dates.py
@@ -577,6 +577,11 @@ def _get_interval(self):
577
return 1
578
579
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
585
unit = self._get_unit()
586
interval = self._get_interval()
587
if abs(vmax - vmin) < 1e-6:
@@ -800,7 +805,7 @@ def __call__(self):
800
805
801
806
802
807
# 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.
804
809
if vmin == vmax:
810
vmin = vmin - 365 * 2
811
vmax = vmax + 365 * 2
0 commit comments