成功解决matplotlib\axes\_axes.py:6462: UserWarning: The 'normed' kwarg is deprecated, and has been repla
成功解决matplotlib\axes\_axes.py:6462: UserWarning: The 'normed' kwarg is deprecated, and has been repla
解决问题
matplotlib\axes\_axes.py:6462: UserWarning: The 'normed' kwarg is deprecated, and has been replaced by the 'density' kwarg.
warnings.warn("The 'normed' kwarg is deprecated, and has been "
解决思路
错误地址:matplotlib\axes\_axes.py:6462:
这个 'normed'参数已经要被弃用, 而用这个参数 'density' 参数所代替
解决方法
此信息提示为警告,而不是error,即使不处理也不会影响代码编程的运行。如果想要去掉,可以更新库至最新版本!
然后根据要求提示修改使用方法!
将'normed'参数,用这个参数 'density'来代替即可!
赞 (0)