Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 696420e

Browse files
committed
Fix relim() to properly ignore existing data. (Thanks Darren Dale).
svn path=/trunk/matplotlib/; revision=4884
1 parent 534be65 commit 696420e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/matplotlib/axes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1201,9 +1201,11 @@ def relim(self):
12011201
'recompute the datalimits based on current artists'
12021202
self.dataLim.ignore(True)
12031203
for line in self.lines:
1204+
self.ignore_existing_data_limits = True
12041205
self._update_line_limits(line)
12051206

12061207
for p in self.patches:
1208+
self.ignore_existing_data_limits = True
12071209
self._update_patch_limits(p)
12081210

12091211
def update_datalim(self, xys):

0 commit comments

Comments
 (0)