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

Skip to content

Commit 03c4d0e

Browse files
committed
Add clip path when resetting radial ticks.
1 parent 4ec0c49 commit 03c4d0e

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
@@ -980,6 +980,7 @@ def set_theta_direction(self, direction):
980980
# FIXME: Why is this needed? Even though the tick label gets
981981
# re-created, the alignment is not correctly updated without a reset.
982982
self.yaxis.reset_ticks()
983+
self.yaxis.set_clip_path(self.patch)
983984

984985
def get_theta_direction(self):
985986
"""
@@ -1037,6 +1038,7 @@ def set_rlabel_position(self, value):
10371038
"""
10381039
self._r_label_position.clear().translate(np.deg2rad(value), 0.0)
10391040
self.yaxis.reset_ticks()
1041+
self.yaxis.set_clip_path(self.patch)
10401042

10411043
def set_yscale(self, *args, **kwargs):
10421044
Axes.set_yscale(self, *args, **kwargs)

0 commit comments

Comments
 (0)