Skip to content

Commit

Permalink
fix #208
Browse files Browse the repository at this point in the history
  • Loading branch information
papajohn committed Jun 6, 2016
1 parent 56d02a4 commit c3f1406
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion datascience/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -1975,10 +1975,11 @@ def hist(self, select=None, overlay=True, bins=None, counts=None, unit=None, **v
values = list(columns.values())[::-1]
colors = list(colors)[::-1]
if counted_values is not None:
vargs['weights'] = values
vargs['weights'] = np.transpose(values)
values = np.repeat(counted_values, n).reshape(-1,n)
vargs.setdefault('histtype', 'stepfilled')
figure = plt.figure(figsize=(6, 4))
print(values, colors, vargs)
plt.hist(values, color=colors, **vargs)
axis = figure.get_axes()[0]
_vertical_x(axis)
Expand Down

0 comments on commit c3f1406

Please sign in to comment.