Skip to content

Commit

Permalink
Merge pull request #290 from sot/set_pickle_stars
Browse files Browse the repository at this point in the history
Set stars for plot() if needed
  • Loading branch information
taldcroft authored Aug 10, 2019
2 parents ad6f861 + b235058 commit 9d8064b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions proseco/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,8 @@ def plot(self, ax=None, **kwargs):
:param kwargs: other keyword args for plot_stars
"""
kwargs.setdefault('catalog', self.get_catalog_for_plot())
if self.stars is None:
self.set_stars()
kwargs.setdefault('stars', self.stars)
kwargs.setdefault('bad_stars', self.bad_stars_mask)
return super().plot(ax, **kwargs)
Expand Down

0 comments on commit 9d8064b

Please sign in to comment.