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

Skip to content

Commit 0bb95f8

Browse files
committed
Merged revisions 7784 via svnmerge from
https://matplotlib.svn.sf.net/svnroot/matplotlib/branches/v0_99_maint ........ r7784 | mdboom | 2009-09-18 11:16:20 -0400 (Fri, 18 Sep 2009) | 2 lines Fix bug where subslicing was cutting polar lines off (because it was treating them as if they were rectilinearly plotted). ........ svn path=/trunk/matplotlib/; revision=7785
1 parent 9314005 commit 0bb95f8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lib/matplotlib/lines.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,10 @@ def recache(self):
453453
self._y = self._xy[:, 1] # just a view
454454

455455
self._subslice = False
456-
if self.axes and len(x) > 100 and self._is_sorted(x):
456+
if (self.axes and len(x) > 100 and self._is_sorted(x) and
457+
self.axes.name == 'rectilinear' and
458+
self.axes.get_xscale() == 'linear' and
459+
self.axes.get_yscale() == 'linear'):
457460
self._subslice = True
458461
if hasattr(self, '_path'):
459462
interpolation_steps = self._path._interpolation_steps

0 commit comments

Comments
 (0)