8000 Improve formatting · matplotlib/matplotlib@c9448ba · GitHub
[go: up one dir, main page]

Skip to content

Commit c9448ba

Browse files
committed
Improve formatting
1 parent bb07f96 commit c9448ba

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
def inverted(self):
217217
# docstring inherited
218-
return PolarAxes.PolarTransform(
219-
self._axis, self._use_rmin,
220-
)
218+
return PolarAxes.PolarTransform(self._axis, self._use_rmin)
221219

222220

223221
class ThetaFormatter(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
elif coords == 'polar':
15551555
from matplotlib.projections import PolarAxes
15561556
tr = PolarAxes.PolarTransform()
1557-
trans = tr + self.axes.transData
1558-
return trans
1557+
return PolarAxes.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)
0