def pivot_hist(self, pivot_column_label, value_column_label, overlay=True, width=<NUM_LIT:6>, height=<NUM_LIT:4>, **vargs):
warnings.warn("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>")<EOL>pvt_labels = np.unique(self[pivot_column_label])<EOL>pvt_columns = [self[value_column_label][np.where(self[pivot_column_label] == pivot)] for pivot in pvt_labels]<EOL>n = len(pvt_labels)<EOL>colors = list(itertools.islice(itertools.cycle(self.chart_colors), n))<EOL>if overlay:<EOL><INDENT>plt.figure(figsize=(width, height))<EOL>vals, bins, patches = plt.hist(pvt_columns, color=colors, **vargs)<EOL>plt.legend(pvt_labels)<EOL><DEDENT>else:<EOL><INDENT>_, axes = plt.subplots(n, <NUM_LIT:1>, figsize=(width, height * n))<EOL>vals = []<EOL>bins = None<EOL>for axis, label, column, color in zip(axes, pvt_labels, pvt_columns, colors):<EOL><INDENT>if isinstance(bins, np.ndarray):<EOL><INDENT>avals, abins, patches = axis.hist(column, color=color, bins=bins, **vargs)<EOL><DEDENT>else:<EOL><INDENT>avals, abins, patches = axis.hist(column, color=color, **vargs)<EOL><DEDENT>axis.set_xlabel(label, fontsize=<NUM_LIT:16>)<EOL>vals.append(avals)<EOL>if not isinstance(bins, np.ndarray):<EOL><INDENT>bins = abins<EOL><DEDENT>else:<EOL><INDENT>assert bins.all() == abins.all(), "<STR_LIT>"<EOL><DEDENT><DEDENT><DEDENT>t = type(self)()<EOL>t['<STR_LIT:start>'] = bins[<NUM_LIT:0>:-<NUM_LIT:1>]<EOL>t['<STR_LIT:end>'] = bins[<NUM_LIT:1>:]<EOL>for label, column in zip(pvt_labels,vals):<EOL><INDENT>t[label] = column<EOL><DEDENT>
Draw histograms of each category in a column.