From: <ef...@us...> - 2009-01-02 03:33:21
|
Revision: 6731 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6731&view=rev Author: efiring Date: 2009-01-02 03:33:17 +0000 (Fri, 02 Jan 2009) Log Message: ----------- Undo polar plotting bug introduced in 6106; improve r grid Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/projections/polar.py Modified: trunk/matplotlib/lib/matplotlib/projections/polar.py =================================================================== --- trunk/matplotlib/lib/matplotlib/projections/polar.py 2009-01-01 22:23:57 UTC (rev 6730) +++ trunk/matplotlib/lib/matplotlib/projections/polar.py 2009-01-02 03:33:17 UTC (rev 6731) @@ -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. |