diff --git a/proseco/core.py b/proseco/core.py index 1934197d..768c736b 100644 --- a/proseco/core.py +++ b/proseco/core.py @@ -507,7 +507,8 @@ def plot(self, ax=None, **kwargs): kwargs.setdefault('bad_stars', np.zeros(len(kwargs['stars']), dtype=bool)) fig = plot_stars(attitude=self.att, ax=ax, **kwargs) - plt.show() + if 'agg' not in plt.get_backend().lower(): + plt.show() return fig