Skip to content

Commit fbf97d4

Browse files
committed
Rely on normal autoscaling for stepfilled hist.
1 parent 253eac3 commit fbf97d4

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

lib/matplotlib/axes/_axes.py

+1-9
Original file line numberDiff line numberDiff line change
@@ -6334,7 +6334,7 @@ def _normalize_input(inp, ename='input'):
63346334

63356335
y[0], y[-1] = minimum, minimum
63366336
else:
6337-
minimum = np.min(bins)
6337+
minimum = 0 # np.min(bins)
63386338

63396339
if align == 'left' or align == 'center':
63406340
x -= 0.5*(bins[1]-bins[0])
@@ -6386,14 +6386,6 @@ def _normalize_input(inp, ename='input'):
63866386
# we return patches, so put it back in the expected order
63876387
patches.reverse()
63886388

6389-
# adopted from adjust_x/ylim part of the bar method
6390-
if orientation == 'horizontal':
6391-
xmax = self.dataLim.intervalx[1]
6392-
self.dataLim.intervalx = (0, xmax)
6393-
elif orientation == 'vertical':
6394-
ymax = self.dataLim.intervaly[1]
6395-
self.dataLim.intervaly = (0, ymax)
6396-
63976389
self.set_autoscalex_on(_saved_autoscalex)
63986390
self.set_autoscaley_on(_saved_autoscaley)
63996391
self.autoscale_view()

0 commit comments

Comments
 (0)