8000 Add clip path when resetting radial ticks. · matplotlib/matplotlib@a2531ee · GitHub
[go: up one dir, main page]

Skip to content

Commit a2531ee

Browse files
committed
Add clip path when resetting radial ticks.
1 parent ba242b1 commit a2531ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/projections/polar.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,6 +1007,7 @@ def set_theta_direction(self, direction):
10071007
# FIXME: Why is this needed? Even though the tick label gets
10081008
# re-created, the alignment is not correctly updated without a reset.
10091009
self.yaxis.reset_ticks()
1010+
self.yaxis.set_clip_path(self.patch)
10101011

10111012
def get_theta_direction(self):
10121013
"""
@@ -1064,6 +1065,7 @@ def set_rlabel_position(self, value):
10641065
"""
10651066
self._r_label_position.clear().translate(np.deg2rad(value), 0.0)
10661067
self.yaxis.reset_ticks()
1068+
self.yaxis.set_clip_path(self.patch)
10671069

10681070
def set_yscale(self, *args, **kwargs):
10691071
Axes.set_yscale(self, *args, **kwargs)

0 commit comments

Comments
 (0)
0