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

Skip to content

Commit b0eaa13

Browse files
committed
make rgrids return grid, not tick, lines
svn path=/trunk/matplotlib/; revision=7313
1 parent 7974ec1 commit b0eaa13

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

CHANGELOG

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4421,4 +4421,3 @@ This is the Old, stale, never used changelog
44214421
2003-11-21 - make a dash-dot dict for the GC
44224422

44234423
2003-12-15 - fix install path bug
4424-
t

lib/matplotlib/projections/polar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ def set_rgrids(self, radii, labels=None, angle=None, rpad=None, **kwargs):
397397
self._r_label2_position.clear().translate(angle, -self._rpad * rmax)
398398
for t in self.yaxis.get_ticklabels():
399399
t.update(kwargs)
400-
return self.yaxis.get_ticklines(), self.yaxis.get_ticklabels()
400+
return self.yaxis.get_gridlines(), self.yaxis.get_ticklabels()
401401

402402
set_rgrids.__doc__ = cbook.dedent(set_rgrids.__doc__) % kwdocd
403403

lib/matplotlib/pyplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1102,7 +1102,7 @@ def rgrids(*args, **kwargs):
11021102
if not isinstance(ax, PolarAxes):
11031103
raise RuntimeError('rgrids only defined for polar axes')
11041104
if len(args)==0:
1105-
lines = ax.yaxis.get_ticklines()
1105+
lines = ax.yaxis.gridlines()
11061106
labels = ax.yaxis.get_ticklabels()
11071107
else:
11081108
lines, labels = ax.set_rgrids(*args, **kwargs)

0 commit comments

Comments
 (0)