Skip to content

Commit

Permalink
use update_datalim
Browse files Browse the repository at this point in the history
  • Loading branch information
rcomer committed Jan 26, 2023
1 parent 5df4a54 commit 28aa213
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions lib/cartopy/mpl/geoaxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1619,10 +1619,7 @@ def contour(self, *args, **kwargs):
if col.get_paths()]
if bboxes:
extent = mtransforms.Bbox.union(bboxes)
self.dataLim.update_from_data_xy(extent.get_points(), ignore=False)
# Ensure newly set limits aren't ignored by subsequent plotting
# functions.
self.ignore_existing_data_limits = False
self.update_datalim(extent)

self.autoscale_view()

Expand Down Expand Up @@ -1670,10 +1667,7 @@ def contourf(self, *args, **kwargs):
if col.get_paths()]
if bboxes:
extent = mtransforms.Bbox.union(bboxes)
self.dataLim.update_from_data_xy(extent.get_points(), ignore=False)
# Ensure newly set limits aren't ignored by subsequent plotting
# functions.
self.ignore_existing_data_limits = False
self.update_datalim(extent)

self.autoscale_view()

Expand Down

0 comments on commit 28aa213

Please sign in to comment.