Skip to content

Commit 7c3147b

Browse files
committed
FIX: Don't subslice lines if non-standar transform
1 parent 039c94a commit 7c3147b

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
@@ -664,7 +664,8 @@ def recache(self, always=False):
664664
self.axes.name == 'rectilinear' and
665665
self.axes.get_xscale() == 'linear' and
666666
self._markevery is None and
667-
self.get_clip_on()):
667+
self.get_clip_on() and
668+
self.get_transform() == self.axes.transData):
668669
self._subslice = True
669670
nanmask = np.isnan(x)
670671
if nanmask.any():

0 commit comments

Comments
 (0)