Skip to content

Commit

Permalink
fix title height
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-vignal committed Oct 25, 2024
1 parent 7c5f342 commit 3764170
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shapash/explainer/smart_plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
from shapash.utils.utils import (
add_line_break,
add_text,
adjust_title_height,
compute_digit_number,
compute_sorted_variables_interactions_list_indices,
maximum_difference_sort_value,
Expand Down Expand Up @@ -1514,7 +1515,7 @@ def ordinal(n):
height = max(500, 11 * g_df.shape[0] * g_df.shape[1])
title = f"Comparing local explanations in a neighborhood - Id: <b>{index}</b>"
title += "<span style='font-size: 16px;'><br />How similar are explanations for closeby neighbours?</span>"
dict_t = self._style_dict["dict_title_stability"] | {"text": title, "y": height}
dict_t = self._style_dict["dict_title_stability"] | {"text": title, "y": adjust_title_height(height)}
dict_xaxis = self._style_dict["dict_xaxis"] | {"text": "Normalized contribution values"}
dict_yaxis = self._style_dict["dict_yaxis"] | {"text": ""}

Expand Down

0 comments on commit 3764170

Please sign in to comment.