Skip to content

Commit 83e21da

Browse files
committed
Adapt size of rprof figures to number of plots
1 parent a68bda8 commit 83e21da

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stagpy/rprof.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ def _plot_rprof_list(sdat, lovs, rprofs, metas, stepstr, rads=None):
1212
if rads is None:
1313
rads = {}
1414
for vfig in lovs:
15-
fig, axes = plt.subplots(ncols=len(vfig), sharey=True)
15+
fig, axes = plt.subplots(ncols=len(vfig), sharey=True,
16+
figsize=(4 * len(vfig), 6))
1617
axes = [axes] if len(vfig) == 1 else axes
1718
fname = 'rprof_'
1819
for iplt, vplt in enumerate(vfig):

0 commit comments

Comments
 (0)