Revision: 6732
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6732&view=rev
Author:   efiring
Date:     2009-01-02 17:13:37 +0000 (Fri, 02 Jan 2009)

Log Message:
-----------
Backport r6731 polar fixes from trunk.

Modified Paths:
--------------
    branches/v0_98_5_maint/lib/matplotlib/projections/polar.py

Modified: branches/v0_98_5_maint/lib/matplotlib/projections/polar.py
===================================================================
--- branches/v0_98_5_maint/lib/matplotlib/projections/polar.py  2009-01-02 
03:33:17 UTC (rev 6731)
+++ branches/v0_98_5_maint/lib/matplotlib/projections/polar.py  2009-01-02 
17:13:37 UTC (rev 6732)
@@ -57,8 +57,6 @@
 
         def transform_path(self, path):
             vertices = path.vertices
-            t = vertices[:, 0:1]
-            t[t != (npy.pi * 2.0)] %= (npy.pi * 2.0)
             if len(vertices) == 2 and vertices[0, 0] == vertices[1, 0]:
                 return Path(self.transform(vertices), path.codes)
             ipath = path.interpolated(self._resolution)
@@ -174,6 +172,11 @@
         def refresh(self):
             return self.base.refresh()
 
+        def view_limits(self, vmin, vmax):
+            vmin, vmax = self.base.view_limits(vmin, vmax)
+            return 0, vmax
+
+
     RESOLUTION = 75
 
     def __init__(self, *args, **kwargs):
@@ -280,6 +283,7 @@
         return Circle((0.5, 0.5), 0.5)
 
     def set_rmax(self, rmax):
+        self.viewLim.y0 = 0
         self.viewLim.y1 = rmax
         angle = self._r_label1_position.to_values()[4]
         self._r_label1_position.clear().translate(


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

------------------------------------------------------------------------------
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to