Skip to content

Commit f9b6e7e

Browse files
committed
tweak height ratios
1 parent 172f9e2 commit f9b6e7e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fooof/core/reports.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ def save_report_fm(fm, file_name, file_path=None, plt_log=False, add_settings=Tr
4141

4242
# Define grid settings based on what is to be plotted
4343
n_rows = 3 if add_settings else 2
44-
height_ratios = [0.45, 1.0, 0.25] if add_settings else [0.45, 1.0]
44+
height_ratios = [0.5, 1.0, 0.25] if add_settings else [0.45, 1.0]
4545

4646
# Set up outline figure, using gridspec
4747
_ = plt.figure(figsize=REPORT_FIGSIZE)
48-
grid = gridspec.GridSpec(n_rows, 1, height_ratios=height_ratios)
48+
grid = gridspec.GridSpec(n_rows, 1, hspace=0.25, height_ratios=height_ratios)
4949

5050
# First - text results
5151
ax0 = plt.subplot(grid[0])
@@ -89,7 +89,7 @@ def save_report_fg(fg, file_name, file_path=None, add_settings=True):
8989

9090
# Define grid settings based on what is to be plotted
9191
n_rows = 4 if add_settings else 3
92-
height_ratios = [0.8, 1.0, 1.0, 0.5] if add_settings else [0.8, 1.0, 1.0]
92+
height_ratios = [1.0, 1.0, 1.0, 0.5] if add_settings else [0.8, 1.0, 1.0]
9393

9494
# Initialize figure
9595
_ = plt.figure(figsize=REPORT_FIGSIZE)

0 commit comments

Comments
 (0)