python - 具有不同 y 轴值的 Pandas 并排线图
问题描述
我正在绘制 3 个并排的线图:
data = df_chuck_from_db.groupby('day')['price'].agg(['min','max','mean'])
data.reset_index(inplace=True)
fig, (ax1, ax2, ax3) = plt.subplots(ncols=3, sharey=True, figsize=(16,6))
data.plot(x='day', y='mean', c='lightsteelblue', ax=ax1)
data.plot(x='day', y='max', c='lightsteelblue', ax=ax2)
data.plot(x='day', y='min', c='lightsteelblue', ax=ax3)
可以将第一个图(平均值)上的 y 轴调整为与其他 2 个图不同吗?
解决方案
推荐阅读
- angular - *ngFor 在报价内不工作。*ngFor 在引导工具提示标签中使用时不起作用
- css - 有没有办法在 Tailwind css 中指定偏移量?
- laravel - 有状态模式下的 Laravel sanctum 登录会话超时
- python-3.x - Python 3:pandas 和 mplfinance:具有顺序数据的烛台图(无日期/时间索引)
- terraform - 是否可以通过 terraform 将文件从一台服务器传输到另一台服务器?
- c - 无法在 C 中打开文件流
- angular - 角度服务中catcherror管道功能的单元测试
- jenkins - Jenkins:你如何通过 SSH 连接到 Windows 虚拟机
- node.js - 如何在一个文件中的函数内获取变量并使用节点js(socket.io)将其传递给另一个文件?
- html - 媒体查询不会更改横幅图像的移动视图显示属性