FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Issue Fix #21959 by 35C4n0r · Pull Request #22130 · matplotlib/matplotlib · GitHub

Repository navigation

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
6 changes: 3 additions & 3 deletions lib/matplotlib/axes/_axes.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -813,8 +813,8 @@ def _check_no_units(vals, names):
# Helper method to check that vals are not unitized
for val, name in zip(vals, names):
if not munits._is_natively_supported(val):
raise ValueError(f"{name} must be a single scalar value, "
f"but got {val}")
raise ValueError(f"{name!r} must be a single scalar value, "
f"but got {val!r}")

@docstring.dedent_interpd
def axline(self, xy1, xy2=None, *, slope=None, **kwargs):
Expand Down Expand Up @@ -3075,7 +3075,7 @@ def get_next_color():

_api.check_isinstance(Number, radius=radius, startangle=startangle)
if radius <= 0:
raise ValueError(f'radius must be a positive number, not {radius}')
raise ValueError(f'radius must be a positive number, not {radius!r}')

# Starting theta1 is the start fraction of the circle
theta1 = startangle / 360
Expand Down

Back | FazBrowse Home | New Git URL