🌐 AI搜索 & 代理 主页
Skip to content

Commit 2b3db00

Browse files
committed
Only check for double kwargs once
1 parent 827cd62 commit 2b3db00

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6052,15 +6052,6 @@ def hist(self, x, bins=None, range=None, density=None, weights=None,
60526052
bin_range = range
60536053
del range
60546054

6055-
# Sets the density variable, if necessary, to its predecessor 'normed.'
6056-
if density is not None and normed is not None:
6057-
raise ValueError('The density and normed arguments represent the '
6058-
'same concept. Please set only one of them.')
6059-
elif normed is not None and density is None:
6060-
density = normed
6061-
elif normed is None and density is None:
6062-
density = False
6063-
60646055
if not self._hold:
60656056
self.cla()
60666057

0 commit comments

Comments
 (0)