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

Skip to content

Backport PR #28136 on branch v3.9.x (Appease pycodestyle.) #28140

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions lib/matplotlib/backends/backend_ps.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,7 @@ def create_hatch(self, hatch):
/PaintProc {{
pop
{linewidth:g} setlinewidth
{self._convert_path(
Path.hatch(hatch), Affine2D().scale(sidelen), simplify=False)}
{self._convert_path(Path.hatch(hatch), Affine2D().scale(sidelen), simplify=False)}
gsave
fill
grestore
Expand Down
6 changes: 1 addition & 5 deletions lib/matplotlib/projections/polar.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,11 +270,7 @@ def __call__(self, x, pos=None):
vmin, vmax = self.axis.get_view_interval()
d = np.rad2deg(abs(vmax - vmin))
digits = max(-int(np.log10(d) - 1.5), 0)
# Use Unicode rather than mathtext with \circ, so that it will work
# correctly with any arbitrary font (assuming it has a degree sign),
# whereas $5\circ$ will only work correctly with one of the supported
# math fonts (Computer Modern and STIX).
return f"{np.rad2deg(x):0.{digits:d}f}\N{DEGREE SIGN}"
return f"{np.rad2deg(x):0.{digits}f}\N{DEGREE SIGN}"


class _AxisWrapper:
Expand Down
Loading