python - 更改气泡图中气泡的大小
问题描述
我正在创建一个气泡图,其中每个气泡都代表一个国家。
我的代码如下所示:
from bubbly.bubbly import bubbleplot
figure = bubbleplot(dataset=df_subset1, x_column="GDP per capita (constant 2005 US$)",
y_column="Fertility rate, total (births per woman)",
bubble_column="CountryName", time_column="Year", color_column="CountryCode",
x_title="GDP per capita", y_title="Fertility",
x_logscale=True, scale_bubble=3, height=650)
iplot(figure, config={'scrollzoom':True})
如何更改气泡的大小?
解决方案
推荐阅读
- java - 调用接口方法,但返回类型无效?
- java - C# 服务器和 Java 客户端 TCP
- r - 使用 mclapply 在 R 上进行并行计算
- java - 如何使用 RestTemplate 为 HTTP GET 请求构建带有查询字符串和查询参数的 URL?
- html - 当用户滚动一定量时,如何将导航栏“附加”到页面顶部?
- java - 为什么选择排序比冒泡排序快?
- java - 查找符号表中第二大键的函数
- node.js - 猫鼬更新很多不适用于 node.js 中的 $cond
- php - 很难从这个数组中取出元素
- javascript - 在 Rails 应用程序中重新加载页面之前,JS/Jquery 将无法工作