Skip to content

Commit

Permalink
Only plt.show() for non-interactive backend
Browse files Browse the repository at this point in the history
  • Loading branch information
taldcroft committed May 12, 2020
1 parent 3a23cc6 commit 6dd88ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion proseco/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6dd88ea

Please sign in to comment.