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

Skip to content

Commit 4507c9b

Browse files
committed
Merge pull request #2675 from mdboom/clip-only-when-clipping-is-on
clip_on = False does not work for x-axis
2 parents 7887018 + c8b4654 commit 4507c9b

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)