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 aeb9414

Browse filesBrowse files
committed
Use text transform for polar ticks also.
This ensures they're rotated the same if plotting full circle and using the rlabel position mode.
1 parent 1493fe1 commit aeb9414
Copy full SHA for aeb9414

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+5
-2
lines changed

‎lib/matplotlib/projections/polar.py

Copy file name to clipboardExpand all lines: lib/matplotlib/projections/polar.py
+5-2Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -537,10 +537,13 @@ def get_xaxis_text2_transform(self, pad):
537537
return self._xaxis_text2_transform, 'center', 'center'
538538

539539
def get_yaxis_transform(self, which='grid'):
540-
if which not in ['tick1', 'tick2', 'grid']:
540+
if which in ('tick1', 'tick2'):
541+
return self._yaxis_text_transform
542+
elif which == 'grid':
543+
return self._yaxis_transform
544+
else:
541545
msg = "'which' must be on of [ 'tick1' | 'tick2' | 'grid' ]"
542546
raise ValueError(msg)
543-
return self._yaxis_transform
544547

545548
def get_yaxis_text1_transform(self, pad):
546549
thetamin, thetamax = self._realViewLim.intervalx

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.