Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a2531ee

Browse filesBrowse files
committed
Add clip path when resetting radial ticks.
1 parent ba242b1 commit a2531ee
Copy full SHA for a2531ee

File tree

Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed

‎lib/matplotlib/projections/polar.py

Copy file name to clipboardExpand all lines: lib/matplotlib/projections/polar.py
+2Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.