python - 带有Y轴百分比的python plotly面积图
问题描述
我尝试以百分比绘制 y 轴。我有一种方法,比如在 excel 中,excel 自动从 0 -100% 缩放?还是有必要首先在数据框中计算(按年份和大陆分组)?
import plotly.express as px
df = px.data.gapminder()
fig = px.area(df, x="year", y="pop", color="continent",
line_group="country")
fig.show()
感谢帮助!
解决方案
推荐阅读
- .net-core - 编辑操作在自动映射器上没有做任何事情
- json - Powershell ConvertFrom-Json 输出 json 格式不正确
- javascript - 在 cPanel 上使用 express 时应该使用哪个端口?
- c# - 如何在 MaskedTextBox 上应用价格格式?
- java - 如何摆脱spring boot的默认异常?
- python - 可能的数据泄露或过拟合?
- aframe - A-Frame中的多个不同的相机
- node.js - 用动态类名实例化对象的简单方法?
- php - laravel pusher - 发送关于生产不工作的事件
- react-native - 仅制作特定部分以在滚动视图中引起滚动移动