From: <md...@us...> - 2008-06-19 13:23:43
|
Revision: 5594 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5594&view=rev Author: mdboom Date: 2008-06-19 06:23:04 -0700 (Thu, 19 Jun 2008) Log Message: ----------- Fix rgrids and thetagrids. Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/projections/polar.py trunk/matplotlib/lib/matplotlib/pyplot.py Modified: trunk/matplotlib/lib/matplotlib/projections/polar.py =================================================================== --- trunk/matplotlib/lib/matplotlib/projections/polar.py 2008-06-19 13:16:16 UTC (rev 5593) +++ trunk/matplotlib/lib/matplotlib/projections/polar.py 2008-06-19 13:23:04 UTC (rev 5594) @@ -316,6 +316,7 @@ self._theta_label2_position.clear().translate(0.0, 1.0 / frac) for t in self.xaxis.get_ticklabels(): t.update(kwargs) + return self.xaxis.get_ticklines(), self.xaxis.get_ticklabels() set_thetagrids.__doc__ = cbook.dedent(set_thetagrids.__doc__) % kwdocd def set_rgrids(self, radii, labels=None, angle=None, rpad=None, **kwargs): @@ -358,6 +359,7 @@ self._r_label2_position.clear().translate(angle, -self._rpad * rmax) for t in self.yaxis.get_ticklabels(): t.update(kwargs) + return self.yaxis.get_ticklines(), self.yaxis.get_ticklabels() set_rgrids.__doc__ = cbook.dedent(set_rgrids.__doc__) % kwdocd Modified: trunk/matplotlib/lib/matplotlib/pyplot.py =================================================================== --- trunk/matplotlib/lib/matplotlib/pyplot.py 2008-06-19 13:16:16 UTC (rev 5593) +++ trunk/matplotlib/lib/matplotlib/pyplot.py 2008-06-19 13:23:04 UTC (rev 5594) @@ -951,8 +951,8 @@ if not isinstance(ax, PolarAxes): raise RuntimeError('rgrids only defined for polar axes') if len(args)==0: - lines = ax.rgridlines() - labels = ax.rgridlabels() + lines = ax.yaxis.get_ticklines() + labels = ax.yaxis.get_ticklabels() else: lines, labels = ax.set_rgrids(*args, **kwargs) @@ -1011,8 +1011,8 @@ if not isinstance(ax, PolarAxes): raise RuntimeError('rgrids only defined for polar axes') if len(args)==0: - lines = ax.thetagridlines() - labels = ax.thetagridlabels() + lines = ax.xaxis.get_ticklines() + labels = ax.xaxis.get_ticklabels() else: lines, labels = ax.set_thetagrids(*args, **kwargs) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |