Skip to content
This repository has been archived by the owner on Jun 16, 2018. It is now read-only.

Commit

Permalink
Merge b7328b0 into a268437
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Sep 9, 2015
2 parents a268437 + b7328b0 commit 2690e83
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions wcsaxes/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,16 @@ def reset_wcs(self, wcs=None, slices=None, transform=None, coord_meta=None):

def draw(self, renderer, inframe=False):

# In Axes.draw, the following code can result in the xlim and ylim
# values changing, so we need to force call this here to make sure that
# the limits are correct before we update the patch.
locator = self.get_axes_locator()
if locator:
pos = locator(self, renderer)
self.apply_aspect(pos)
else:
self.apply_aspect()

# We need to make sure that that frame path is up to date
self.coords.frame._update_patch_path()

Expand Down

0 comments on commit 2690e83

Please sign in to comment.