Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 191b339

Browse files
oscargusmeeseeksmachine
authored andcommitted
Backport PR #28136: Appease pycodestyle.
1 parent 479ff82 commit 191b339

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

lib/matplotlib/backends/backend_ps.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,7 @@ def create_hatch(self, hatch):
362362
/PaintProc {{
363363
pop
364364
{linewidth:g} setlinewidth
365-
{self._convert_path(
366-
Path.hatch(hatch), Affine2D().scale(sidelen), simplify=False)}
365+
{self._convert_path(Path.hatch(hatch), Affine2D().scale(sidelen), simplify=False)}
367366
gsave
368367
fill
369368
grestore

lib/matplotlib/projections/polar.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -270,11 +270,7 @@ def __call__(self, x, pos=None):
270270
vmin, vmax = self.axis.get_view_interval()
271271
d = np.rad2deg(abs(vmax - vmin))
272272
digits = max(-int(np.log10(d) - 1.5), 0)
273-
# Use Unicode rather than mathtext with \circ, so that it will work
274-
# correctly with any arbitrary font (assuming it has a degree sign),
275-
# whereas $5\circ$ will only work correctly with one of the supported
276-
# math fonts (Computer Modern and STIX).
277-
return f"{np.rad2deg(x):0.{digits:d}f}\N{DEGREE SIGN}"
273+
return f"{np.rad2deg(x):0.{digits}f}\N{DEGREE SIGN}"
278274

279275

280276
class _AxisWrapper:

0 commit comments

Comments
 (0)