Skip to content

Commit

Permalink
Change n_cols per plot
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanguy Pierre Louis Damart committed Jan 17, 2023
1 parent 85a7efd commit 3cc23d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bluepyefe/cell.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,12 @@ def plot_recordings(self, protocol_name, output_dir=None, show=False):
recordings_amp = [rec.amp for rec in recordings]
recordings = [recordings[k] for k in numpy.argsort(recordings_amp)]

n_cols = 10
n_cols = 6
n_rows = int(2 * numpy.ceil(len(recordings) / n_cols))

fig, axs = plt.subplots(
n_rows, n_cols,
figsize=[3.0 + 2.2 * int(n_cols), 2.5 * n_rows],
figsize=[3.0 + 3.0 * int(n_cols), 2.5 * n_rows],
squeeze=False
)

Expand Down
Loading

0 comments on commit 3cc23d6

Please sign in to comment.