Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f3294dd

Browse files
committed
Remove useless, confusing check in hist().
_saved_bounds is not used anywhere. It was introduced in c8af84a and even then was only used for numpy<=1.2.
1 parent 1c0b96c commit f3294dd

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6174,9 +6174,6 @@ def hist(self, x, bins=None, range=None, normed=False, weights=None,
61746174
if len(color) != nx:
61756175
raise ValueError("color kwarg must have one color per dataset")
61766176

6177-
# Save the datalimits for the same reason:
6178-
_saved_bounds = self.dataLim.bounds
6179-
61806177
# If bins are not specified either explicitly or via range,
61816178
# we need to figure out the range required for all datasets,
61826179
# and supply that to np.histogram.

0 commit comments

Comments
 (0)