Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit19c64c4

Browse files
committed
Use text transform for polar ticks also.
This ensures they're rotated the same if plotting full circle and usingthe rlabel position mode.
1 parentb351093 commit19c64c4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎lib/matplotlib/projections/polar.py

Lines 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
returnself._xaxis_text2_transform,'center','center'
538538

539539
defget_yaxis_transform(self,which='grid'):
540-
ifwhichnotin ['tick1','tick2','grid']:
540+
ifwhichin ('tick1','tick2'):
541+
returnself._yaxis_text_transform
542+
elifwhich=='grid':
543+
returnself._yaxis_transform
544+
else:
541545
msg="'which' must be on of [ 'tick1' | 'tick2' | 'grid' ]"
542546
raiseValueError(msg)
543-
returnself._yaxis_transform
544547

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp