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

Commitc9448ba

Browse files
committed
Improve formatting
1 parentbb07f96 commitc9448ba

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

‎lib/matplotlib/projections/polar.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,7 @@ def transform_non_affine(self, values):
215215

216216
definverted(self):
217217
# docstring inherited
218-
returnPolarAxes.PolarTransform(
219-
self._axis,self._use_rmin,
220-
)
218+
returnPolarAxes.PolarTransform(self._axis,self._use_rmin)
221219

222220

223221
classThetaFormatter(mticker.Formatter):

‎lib/matplotlib/text.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1554,8 +1554,7 @@ def _get_xy_transform(self, renderer, coords):
15541554
elifcoords=='polar':
15551555
frommatplotlib.projectionsimportPolarAxes
15561556
tr=PolarAxes.PolarTransform()
1557-
trans=tr+self.axes.transData
1558-
returntrans
1557+
returnPolarAxes.PolarTransform()+self.axes.transData
15591558

15601559
try:
15611560
bbox_name,unit=coords.split()

‎lib/mpl_toolkits/axisartist/tests/test_grid_helper_curvelinear.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ def test_polar_box():
8282

8383
# PolarAxes.PolarTransform takes radian. However, we want our coordinate
8484
# system in degree
85-
tr= (Affine2D().scale(np.pi/180.,1.)+
86-
PolarAxes.PolarTransform())
85+
tr=Affine2D().scale(np.pi/180.,1.)+PolarAxes.PolarTransform()
8786

8887
# polar projection, which involves cycle, and also has limits in
8988
# its coordinates, needs a special method to find the extremes
@@ -145,8 +144,7 @@ def test_axis_direction():
145144

146145
# PolarAxes.PolarTransform takes radian. However, we want our coordinate
147146
# system in degree
148-
tr= (Affine2D().scale(np.pi/180.,1.)+
149-
PolarAxes.PolarTransform())
147+
tr=Affine2D().scale(np.pi/180.,1.)+PolarAxes.PolarTransform()
150148

151149
# polar projection, which involves cycle, and also has limits in
152150
# its coordinates, needs a special method to find the extremes

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp