From a1aa2e2a053ee2fcf7382cf10db206037d00804d Mon Sep 17 00:00:00 2001 From: "J.H. Smit" Date: Mon, 3 Feb 2020 15:41:35 +0100 Subject: [PATCH] fix bug when moving to the next line --- pyhdx/plot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyhdx/plot.py b/pyhdx/plot.py index 71167033..df7cc4d0 100644 --- a/pyhdx/plot.py +++ b/pyhdx/plot.py @@ -85,8 +85,9 @@ def make_coverage_figure(pm, wrap, aa_per_subplot, figsize=(10, 8), **kwargs): num_axes = pm.stop // aa_per_subplot + 1 fig, axes = plt.subplots(num_axes, figsize=figsize) - i = -1 for j, ax in enumerate(axes): + i = -1 + for e in pm.data: if i < -wrap: i = -1