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

Skip to content

Commit c8b4654

Browse files
committed
Do clip optimization only when clipping is turned on
1 parent e6f8993 commit c8b4654

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/lines.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,8 @@ def recache(self, always=False):
457457
if (self.axes and len(x) > 100 and self._is_sorted(x) and
458458
self.axes.name == 'rectilinear' and
459459
self.axes.get_xscale() == 'linear' and
460-
self._markevery is None):
460+
self._markevery is None and
461+
self.get_clip_on() is True):
461462
self._subslice = True
462463
if hasattr(self, '_path'):
463464
interpolation_steps = self._path._interpolation_steps

0 commit comments

Comments
 (0)