From 45904ea370694fac18cf0642e5696fdec345b9dd Mon Sep 17 00:00:00 2001 From: Moritz-Alexander-Kern Date: Thu, 16 Nov 2023 14:47:02 +0100 Subject: [PATCH] plot_patterns_hypergraph return axes --- viziphant/patterns_src/view.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/viziphant/patterns_src/view.py b/viziphant/patterns_src/view.py index 82e1a6a..31edfc5 100644 --- a/viziphant/patterns_src/view.py +++ b/viziphant/patterns_src/view.py @@ -11,6 +11,7 @@ from holoviews import opts from holoviews.streams import Pipe import numpy as np +import matplotlib.pyplot as plt from viziphant.patterns_src.hypergraph import Hypergraph @@ -230,7 +231,8 @@ def show(self, # Set size of the plot to a square to avoid distortions self.plot = plot.redim.range(x=(-1, 11), y=(-1, 11)) - return hv.render(plot, backend="matplotlib") + axes = hv.render(plot, backend="matplotlib").axes[0] + return axes def draw_hyperedges(self, subset_style=VisualizationStyle.COLOR,