Skip to content

Commit 03cd5ae

Browse files
committed
remove percentage for continous values
1 parent 8ae34b7 commit 03cd5ae

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

skrub/_reporting/_plotting.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -218,17 +218,6 @@ def _robust_hist(values, ax, color):
218218
# set max of y axis for include the text in the graphic
219219
ax.set_ylim(ax.get_ylim()[0], ax.get_ylim()[1] * 2.2)
220220

221-
# add the percentage of each bar on the top of the figure
222-
ax_percentage = ax.twiny()
223-
ax_percentage.set_xlim(ax.get_xlim())
224-
ax_percentage.set_xticks(ticks=bins[:-1] + 0.5 * np.diff(bins))
225-
ax_percentage.set_xticklabels(
226-
labels=percentages,
227-
color=_TEXT_COLOR_PLACEHOLDER,
228-
fontsize=8,
229-
rotation="vertical",
230-
)
231-
232221
if not n_out:
233222
return 0, 0
234223
width = bins[1] - bins[0]
@@ -259,7 +248,6 @@ def _robust_hist(values, ax, color):
259248
color=_RED,
260249
)
261250
ax.set_xlim(start, stop)
262-
ax_percentage.set_xlim(ax.get_xlim())
263251
return n_low_outliers, n_high_outliers
264252

265253

0 commit comments

Comments
 (0)