python-3.x - 在使用 matplotlib 构建直方图时,在什么情况下会出现以下错误:ValueError: `bins` must be 1d, when an array
问题描述
我收到有关ValueError: `bins` must be 1d, when an array
使用 matplotlib 构建直方图的错误。我想自己调试,只想要一个方向,所以我没有显示代码。
解决方案
据我了解你的问题你桅杆使用不歇斯底里
insert_axes.bar(x = tips_per_day['day'], height = tips_per_day['max'],
width = 0.6, align = 'edge')
insert_axes.bar(x = tips_per_day['day'], height = tips_per_day['min'],
width = -0.6, align = 'edge')
推荐阅读
- multithreading - 在 C++ 中同时运行套接字和其他计算
- google-cloud-platform - 仅当通过我的域访问资源时,如何才能授予访问权限?
- regex - 如何使用 re.findall() 查找由“=”符号分隔的单词
- c# - 未设置的 ASP.NET Order bool
- javascript - 用于选择/取消选择所有复选框的纯 JavaScript 切换
- sql-server - T-SQL 检查表是否存在于模式中
- svg - 有没有办法用 SkiaSharp 异步加载 SVG 绘图?
- docker-compose - Traefik:简单的 Letsencrypt HTTPS 重定向到 whoami 服务抛出“404 页面未找到”
- reactjs - 将 props 从组件传递给函数
- c# - WPF-NotifyIcon 查找资源不起作用 - Hardcodet.WPF.TaskbarNotification