You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Missing whitespace in _axes.py error message #30285
"'facecolor' or 'color' argument must be a valid color or"
"sequence of colors."
) fromerr
We see that the error message has been split into two lines, however it is missing a whitespace, resulting in the following typo:
argument must be a valid color orsequence of colors.
I would be very happy to tackle this myself as my first matplotlib PR if that's agreeable!
Code for reproduction
importmatplotlib.pyplotasplt# Create a simple plotfig, ax=plt.subplots()
# This will trigger the facecolor error by passing an invalid colorax.bar([1, 2, 3], [1, 2, 3], facecolor='invalid_color')
plt.show()
Actual outcome
ValueError: 'facecolor' or 'color' argument must be a valid color orsequence of colors.
Expected outcome
ValueError: 'facecolor' or 'color' argument must be a valid color or sequence of colors.
Activity
Fix whitespace in _axes.py error message
Fix whitespace in _axes.py error message