Skip to content

Commit

Permalink
fix for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bmorris3 committed Jul 27, 2023
1 parent 9c7678a commit c28284f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion astroplan/plots/sky.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ def plot_sky(target, observer, time, ax=None, style_kwargs=None,
if isinstance(plt.gca(), plt.PolarAxes):
ax = plt.gca()
else:
fig = plt.figure()
plt.close()
fig = plt.gcf()
ax = fig.add_subplot(projection='polar')

if style_kwargs is None:
Expand Down

0 comments on commit c28284f

Please sign in to comment.