From f0df8aeb2cbe1eb76e7fe2bb64744029ea236af7 Mon Sep 17 00:00:00 2001 From: Lukas Prause Date: Thu, 19 Jan 2023 14:11:25 +0100 Subject: [PATCH] Background color for cell id. --- plot_transmission_timeline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plot_transmission_timeline.py b/plot_transmission_timeline.py index 43a83da..0700396 100755 --- a/plot_transmission_timeline.py +++ b/plot_transmission_timeline.py @@ -194,7 +194,7 @@ if __name__ == "__main__": cmap = matplotlib.cm.get_cmap("Set3") for c in transmission_df["cellID"].unique(): bounds = transmission_df[["index", "cellID"]].groupby("cellID").agg(["min", "max"]).loc[c] - host.axvspan(bounds.min(), bounds.max() + 1, alpha=0.3, color=cmap.colors[c]) + host.axvspan(bounds.min(), bounds.max(), alpha=0.3, color=cmap.colors[c]) plt.subplots_adjust()