Skip to content

Commit 824d6a3

Browse files
committed
modifyed for retrocompatibility
1 parent caa3768 commit 824d6a3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

skrub/_reporting/_plotting.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,8 @@ def _robust_hist(values, ax, color):
221221
# add the percentage of each bar on the top of the figure
222222
ax_percentage = ax.twiny()
223223
ax_percentage.set_xlim(ax.get_xlim())
224-
ax_percentage.set_xticks(
225-
ticks=bins[:-1] + 0.5 * np.diff(bins),
224+
ax_percentage.set_xticks(ticks=bins[:-1] + 0.5 * np.diff(bins))
225+
ax_percentage.set_xticklabels(
226226
labels=percentages,
227227
color=_TEXT_COLOR_PLACEHOLDER,
228228
fontsize=8,
@@ -357,8 +357,8 @@ def value_counts(value_counts, n_unique, n_rows, color=COLOR_0):
357357
# add the percentage of each bar on the top of the figure
358358
ax_percentage = ax.twinx()
359359
ax_percentage.set_ylim(ax.get_ylim())
360-
ax_percentage.set_yticks(
361-
ticks=range(len(counts)),
360+
ax_percentage.set_yticks(ticks=range(len(counts)))
361+
ax_percentage.set_yticklabels(
362362
labels=percent,
363363
color=_TEXT_COLOR_PLACEHOLDER,
364364
fontsize=8,

0 commit comments

Comments
 (0)