成功解决TypeError: Scalar value for argument 'color' is not numeric

简介: 成功解决TypeError: Scalar value for argument 'color' is not numeric

解决问题


TypeError: Scalar value for argument 'color' is not numeric





解决思路


类型错误:参数“color”的标量值不是数字





解决方法


颜色参数不是不是数字类型可知,该函数需要颜色是数值型而不是类似red的字符串型,改为颜色对应的RGB数值即可!

image.png





相关文章
|
TensorFlow 算法框架/工具 Python
成功解决AttributeError: module 'numpy' has no attribute 'equal'
成功解决AttributeError: module 'numpy' has no attribute 'equal'
成功解决AttributeError: module 'numpy' has no attribute 'equal'
|
4月前
|
数据处理 开发者 Python
【Python】已解决:ValueError: Length mismatch: Expected axis has 5 elements, new values have 4 elements
【Python】已解决:ValueError: Length mismatch: Expected axis has 5 elements, new values have 4 elements
290 9
|
算法框架/工具
Keras报错:TypeError: (‘Keyword argument not understood:‘, ‘offset‘)
Keras报错:TypeError: (‘Keyword argument not understood:‘, ‘offset‘)
186 0
|
6月前
|
Python
完美解决丨2. `TypeError: list indices must be integers or slices, not str`
完美解决丨2. `TypeError: list indices must be integers or slices, not str`
|
机器学习/深度学习 PyTorch 算法框架/工具
解决Pytorch中RuntimeError: expected scalar type Double but found Float
解决Pytorch中RuntimeError: expected scalar type Double but found Float
2697 0
|
TensorFlow 算法框架/工具
解决TypeError: tf__update_state() got an unexpected keyword argument ‘sample_weight‘
解决TypeError: tf__update_state() got an unexpected keyword argument ‘sample_weight‘
277 0
解决TypeError: tf__update_state() got an unexpected keyword argument ‘sample_weight‘
成功解决TypeError: concat() got an unexpected keyword argument ‘join_axes‘
成功解决TypeError: concat() got an unexpected keyword argument ‘join_axes‘