8000 Tweak log axis limit calculation for bar plot · matplotlib/matplotlib@67b4190 · GitHub
[go: up one dir, main page]

Skip to content

Commit 67b4190

Browse files
committed
Tweak log axis limit calculation for bar plot
svn path=/trunk/matplotlib/; revision=2948
1 parent 38a3d1f commit 67b4190

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/axes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2753,14 +2753,14 @@ def make_iterable(x):
27532753
xmin = amin(w)
27542754
if xerr is not None:
27552755
xmin = xmin - amax(xerr)
2756-
xmin = min(xmin, 1e-100)
2756+
xmin = max(xmin*0.9, 1e-100)
27572757
self.dataLim.intervalx().set_bounds(xmin, xmax)
27582758
if adjust_ylim:
27592759
ymin, ymax = self.dataLim.intervaly().get_bounds()
27602760
ymin = amin(h)
27612761
if yerr is not None:
27622762
ymin = ymin - amax(yerr)
2763-
ymin = max(ymin, 1e-100)
2763+
ymin = max(ymin*0.9, 1e-100)
27642764
self.dataLim.intervaly().set_bounds(ymin, ymax)
27652765
self.autoscale_view()
27662766
return patches

0 commit comments

Comments
 (0)
0