Skip to content

Commit 6a14081

Browse files
Merge pull request #314 from MontgomeryLab/issue-313
Bugfix: scatter_by_dge_class plots are properly aligned
2 parents 47ac57c + 2eb0f41 commit 6a14081

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tiny/rna/plotterlib.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,11 +719,12 @@ def get(self) -> Tuple[plt.Figure, plt.Axes]:
719719

720720
class ScatterCache(CacheBase):
721721
def __init__(self):
722-
self.fig, self.ax = plt.subplots(figsize=(8, 8), tight_layout=False)
722+
self.fig, self.ax = plt.subplots(figsize=(8, 8), layout="none")
723723
self.ax.set_aspect('equal')
724724

725725
def get(self) -> Tuple[plt.Figure, plt.Axes]:
726726
for group in self.ax.collections:
727727
group.remove()
728728

729+
self.fig.set_layout_engine('none')
729730
return self.fig, self.ax

0 commit comments

Comments
 (0)