Skip to content

Commit a6760e6

Browse files
authored
Merge pull request #30 from nipype/danielmlow-patch-1
Update report.py
2 parents a44e535 + 7c38e95 commit a6760e6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pydra_ml/report.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@ def plot_summary(summary, output_dir=None, filename="shap_plot", plot_top_n_shap
4040
hm.set_xticklabels(summary.columns, rotation=45)
4141
hm.set_yticklabels(summary.index, rotation=0)
4242
plt.ylabel("Features")
43-
plt.tight_layout()
4443
plt.show(block=False)
45-
plt.savefig(output_dir + f"summary_{filename}.png", dpi=100)
44+
plt.savefig(output_dir + f"summary_{filename}.png", dpi=100, bbox_inches='tight')
4645

4746

4847
def shaps_to_summary(

0 commit comments

Comments
 (0)