Revision: 7784
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7784&view=rev
Author:   mdboom
Date:     2009-09-18 15:16:20 +0000 (Fri, 18 Sep 2009)

Log Message:
-----------
Fix bug where subslicing was cutting polar lines off (because it was treating 
them as if they were rectilinearly plotted).

Modified Paths:
--------------
    branches/v0_99_maint/lib/matplotlib/lines.py

Modified: branches/v0_99_maint/lib/matplotlib/lines.py
===================================================================
--- branches/v0_99_maint/lib/matplotlib/lines.py        2009-09-18 14:28:39 UTC 
(rev 7783)
+++ branches/v0_99_maint/lib/matplotlib/lines.py        2009-09-18 15:16:20 UTC 
(rev 7784)
@@ -459,7 +459,10 @@
         self._y = self._xy[:, 1] # just a view
 
         self._subslice = False
-        if self.axes and len(x) > 100 and self._is_sorted(x):
+        if (self.axes and len(x) > 100 and self._is_sorted(x) and
+            self.axes.name == 'rectilinear' and
+            self.axes.get_xscale() == 'linear' and
+            self.axes.get_yscale() == 'linear'):
             self._subslice = True
         if hasattr(self, '_path'):
             interpolation_steps = self._path._interpolation_steps


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to