A module for plotting interactive and animated bubble charts using Plotly
Project description
Bubbly is a package for plotting interactive and animated bubble charts using Plotly. The animated bubble charts can accommodate upto seven variables in total viz. X-axis, Y-axis, Z-axis, time, bubbles, their size and their color in a compact and captivating way. Bubbly is easy to use with plenty of customization, especially suited for use in Jupyter notebooks and is designed to work with plotly’s offline mode such as in Kaggle kernels.
Dependencies
Python 3.4+
numpy
pandas
plotly
Installation
pip install bubbly
Usage in a Jupyter Notebook
from __future__ import division
from plotly.offline import init_notebook_mode, iplot
init_notebook_mode()
from bubbly.bubbly import bubbleplot
figure = bubbleplot(dataset=gapminder_indicators, x_column='gdpPercap', y_column='lifeExp',
bubble_column='country', time_column='year', size_column='pop', color_column='continent',
x_title="GDP per Capita", y_title="Life Expectancy", title='Gapminder Global Indicators',
x_logscale=True, scale_bubble=3, height=650)
iplot(figure, config={'scrollzoom': True})
Please refer to the Jupyter notebook here for more examples and illustration of the plotting function bubbleplot.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file bubbly-1.0.2.tar.gz
.
File metadata
- Download URL: bubbly-1.0.2.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58566dbb572efc2b7b413cd6b94820479d0c48d1da653e2ad52b3680f5d125d2 |
|
MD5 | 99e08d66e84297f05aa82230a56539d7 |
|
BLAKE2b-256 | d1ba78a1262f6e96c92ac5b290c5654bc4cf6b8016d0d97c604576899f571cf0 |