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

Skip to content

Commit 6af9d4f

Browse files
committed
Merge pull request #5275 from mdboom/subslicing-bug
Always remake the subsliced line. Fix #5270
2 parents d028f87 + 12ae18f commit 6af9d4f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/matplotlib/lines.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -717,10 +717,8 @@ def draw(self, renderer):
717717
i0, = self._x_filled.searchsorted([x0], 'left')
718718
i1, = self._x_filled.searchsorted([x1], 'right')
719719
subslice = slice(max(i0 - 1, 0), i1 + 1)
720-
# Don't remake the Path unless it will be sufficiently smaller.
721-
if subslice.start > 100 or len(self._x) - subslice.stop > 100:
722-
self.ind_offset = subslice.start
723-
self._transform_path(subslice)
720+
self.ind_offset = subslice.start
721+
self._transform_path(subslice)
724722

725723
transf_path = self._get_transformed_path()
726724

0 commit comments

Comments
 (0)