Skip to main content

A module for plotting interactive and animated bubble charts using Plotly

Project description

Bubbly is a module for plotting interactive and animated bubble charts using Plotly. The animated bubble charts can accomodate six variables in total viz. X-axis, Y-axis, time, dots, their size and their color in a compact and captivating way. The function bubbleplot is easy to use with plenty of customization and returns a figure object that is a dictionary in a suitable format for use with plotly. Bubbly is 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

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',
  dot_column='country', time_column='year', size_column='pop', category_column='continent',
  x_title="GDP per Capita", y_title="Life Expectancy", title='Gapminder Global Indicators',
  x_logscale=True, height=650)
iplot(figure, config={'scrollzoom': True})

Please refer to the Jupyter notebook here for illustration of the plotting function.

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

bubbly-1.0.1.tar.gz (4.6 kB view details)

Uploaded Source

File details

Details for the file bubbly-1.0.1.tar.gz.

File metadata

  • Download URL: bubbly-1.0.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for bubbly-1.0.1.tar.gz
Algorithm Hash digest
SHA256 a31cbe9e1cf5e7faf456b6063e9e3098fc07cf1dc383e9cba550d6ec37303417
MD5 793ee3f6b11c8017a7d34d341ade0251
BLAKE2b-256 d56b97caf59b90454e838ca18ad2a27fd3797530f1b07a606a1f794ba200d8c9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page