Skip to content

Commit 3c125d6

Browse files
committed
fixed v=0 loglocator bug
svn path=/trunk/matplotlib/; revision=932
1 parent 8635987 commit 3c125d6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/matplotlib/ticker.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -646,9 +646,8 @@ def autoscale(self):
646646
minpos = self.dataInterval.minpos()
647647
if minpos<0:
648648
raise RuntimeError('No positive data to plot')
649-
if vmin<0:
649+
if vmin<=0:
650650
vmin = minpos
651-
652651
if not is_decade(vmin,self.base): vmin = decade_down(vmin,self.base)
653652
if not is_decade(vmax,self.base): vmax = decade_up(vmax,self.base)
654653
if vmin==vmax:

0 commit comments

Comments
 (0)