From cf788d64885e7e8476811949ecea69dbaf6d43ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Al=C3=A1n=20Mu=C3=B1oz?= <alan.munoz@ed.ac.uk> Date: Tue, 28 Feb 2023 20:03:29 +0000 Subject: [PATCH] feat(plot): add plot.py utils --- src/aliby/utils/plot.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/aliby/utils/plot.py diff --git a/src/aliby/utils/plot.py b/src/aliby/utils/plot.py new file mode 100644 index 00000000..72cf29a4 --- /dev/null +++ b/src/aliby/utils/plot.py @@ -0,0 +1,12 @@ +#!/usr/bin/env jupyter +""" +Basic plotting functions for cell visualisation +""" + +from matplotlib import pyplot as plt + + +def plot_overlay(bg, fg, alpha=0.5, ax=plt) -> None: + ax.imshow(bg, cmap=plt.cm.gray, interpolation="none") + ax.imshow(fg, alpha=alpha, interpolation="none") + ax.axis("off") -- GitLab