Skip to content

Issue Fix #21959 #22130

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

Closed
wants to merge 2 commits into from
Closed
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
6 changes: 3 additions & 3 deletions lib/matplotlib/axes/_axes.py
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