Skip to content

Commit 1ea27cb

Browse files
committed
add settings for group report
1 parent 117cbc0 commit 1ea27cb

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

fooof/core/reports.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def save_report_fg(fg, file_name, file_path=None):
8282

8383
# Initialize figure
8484
_ = plt.figure(figsize=REPORT_FIGSIZE)
85-
grid = gridspec.GridSpec(3, 2, wspace=0.4, hspace=0.25, height_ratios=[0.8, 1.0, 1.0])
85+
grid = gridspec.GridSpec(4, 2, wspace=0.4, hspace=0.25, height_ratios=[0.8, 1.0, 1.0, 0.5])
8686

8787
# First / top: text results
8888
ax0 = plt.subplot(grid[0, :])
@@ -92,6 +92,8 @@ def save_report_fg(fg, file_name, file_path=None):
9292
ax0.set_xticks([])
9393
ax0.set_yticks([])
9494

95+
# Second - data plots
96+
9597
# Aperiodic parameters plot
9698
ax1 = plt.subplot(grid[1, 0])
9799
plot_fg_ap(fg, ax1)
@@ -104,6 +106,14 @@ def save_report_fg(fg, file_name, file_path=None):
104106
ax3 = plt.subplot(grid[2, :])
105107
plot_fg_peak_cens(fg, ax3)
106108

109+
# Third - Model settings
110+
ax4 = plt.subplot(grid[3, :])
111+
settings_str = gen_settings_str(fg, False)
112+
ax4.text(0.5, 0.1, settings_str, REPORT_FONT, ha='center', va='center')
113+
ax4.set_frame_on(False)
114+
ax4.set_xticks([])
115+
ax4.set_yticks([])
116+
107117
# Save out the report
108118
plt.savefig(fpath(file_path, fname(file_name, SAVE_FORMAT)))
109119
plt.close()

0 commit comments

Comments
 (0)