Skip to content

Commit c3f1406

Browse files
committed
fix #208
1 parent 56d02a4 commit c3f1406

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

datascience/tables.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1975,10 +1975,11 @@ def hist(self, select=None, overlay=True, bins=None, counts=None, unit=None, **v
19751975
values = list(columns.values())[::-1]
19761976
colors = list(colors)[::-1]
19771977
if counted_values is not None:
1978-
vargs['weights'] = values
1978+
vargs['weights'] = np.transpose(values)
19791979
values = np.repeat(counted_values, n).reshape(-1,n)
19801980
vargs.setdefault('histtype', 'stepfilled')
19811981
figure = plt.figure(figsize=(6, 4))
1982+
print(values, colors, vargs)
19821983
plt.hist(values, color=colors, **vargs)
19831984
axis = figure.get_axes()[0]
19841985
_vertical_x(axis)

0 commit comments

Comments
 (0)