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 03c4d0e

Browse filesBrowse files
committed
Add clip path when resetting radial ticks.
1 parent 4ec0c49 commit 03c4d0e
Copy full SHA for 03c4d0e

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
@@ -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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.