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

Skip to content

Commit 8271952

Browse files
committed
MNT: expose hist(..., weight='key') to data kwarg
1 parent a051b57 commit 8271952

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5680,7 +5680,7 @@ def table(self, **kwargs):
56805680

56815681
#### Data analysis
56825682

5683-
@unpack_labeled_data(replace_names=["x"], label_namer="x")
5683+
@unpack_labeled_data(replace_names=["x", 'weights'], label_namer="x")
56845684
@docstring.dedent_interpd
56855685
def hist(self, x, bins=10, range=None, normed=False, weights=None,
56865686
cumulative=False, bottom=None, histtype='bar', align='mid',

0 commit comments

Comments
 (0)