8000 0.0 --> 0 · matplotlib/matplotlib@a5b071b · GitHub
[go: up one dir, main page]

Skip to content

Commit a5b071b

Browse files
committed
0.0 --> 0
1 parent c0a0873 commit a5b071b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3048,13 +3048,13 @@ def set_xlim(self, left=None, right=None, emit=True, auto=False, **kw):
30483048
left, right = mtransforms.nonsingular(left, right, increasing=False)
30493049

30503050
if self.get_xscale() == 'log':
3051-
if left <= 0.0:
3051+
if left <= 0:
30523052
warnings.warn(
30533053
'Attempted to set non-positive left xlim on a '
30543054
'log-scaled axis.\n'
30553055
'Invalid limit will be ignored.')
30563056
left = old_left
3057-
if right <= 0.0:
3057+
if right <= 0:
30583058
warnings.warn(
30593059
'Attempted to set non-positive right xlim on a '
30603060
'log-scaled axis.\n'
@@ -3378,13 +3378,13 @@ def set_ylim(self, bottom=None, top=None, emit=True, auto=False, **kw):
33783378
bottom, top = mtransforms.nonsingular(bottom, top, increasing=False)
33793379

33803380
if self.get_yscale() == 'log':
3381-
if bottom <= 0.0:
3381+
if bottom <= 0:
33823382
warnings.warn(
33833383
'Attempted to set non-positive bottom ylim on a '
33843384
'log-scaled axis.\n'
33853385
'Invalid limit will be ignored.')
33863386
bottom = old_bottom
3387-
if top <= 0.0:
3387+
if top <= 0:
33883388
warnings.warn(
33893389
'Attempted to set non-positive top ylim on a '
33903390
'log-scaled axis.\n'

0 commit comments

Comments
 (0)
0