Skip to content

Commit 7e276ff

Browse files
authored
Update report.py
Made heatmap square
1 parent a6760e6 commit 7e276ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydra_ml/report.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def plot_summary(summary, output_dir=None, filename="shap_plot", plot_top_n_shap
3535
filename += f"_top_{plot_top_n_shap}"
3636

3737
hm = sns.heatmap(
38-
summary.round(3), annot=True, xticklabels=True, yticklabels=True, cbar=False
38+
summary.round(3), annot=True, xticklabels=True, yticklabels=True, cbar=False, square=True,
3939
)
4040
hm.set_xticklabels(summary.columns, rotation=45)
4141
hm.set_yticklabels(summary.index, rotation=0)

0 commit comments

Comments
 (0)