Skip to main content

Lightning-fast way to get plots with Plotly

Project description

blitzly logo

blitzly ⚡️

Lightning-fast way to get plots with Plotly

Testing pypi python version docs license mypy black isort pre-commit

Introduction 🎉

Plotly is great and powerful. But with great power comes great responsibility. And sometimes you just want to get a plot up and running as fast as possible. That's where blitzly ⚡️ comes in. It provides a set of functions that allow you to create plots with Plotly in a lightning-fast way. It's not meant to replace Plotly, but rather to complement it.

Install the package 📦

If you are using pip, you can install the package with the following command:

pip install blitzly

If you are using Poetry, you can install the package with the following command:

poetry add blitzly

installing dependencies 🧑‍🔧

With pip:

pip install -r requirements.txt

With Poetry:

poetry install

Available plots (so far 🚀)

Module Method Description
bar multi_chart Creates a bar chart with multiple groups.
histogram simple_histogram Plots a histogram with one ore more distributions.
matrix binary_confusion_matrix Plots a confusion matrix for binary classification data.

Usage 🤌

Here are some examples: multi_chart:

from blitzly.bar import multi_chart
import numpy as np

data = np.array([[8, 3, 6], [9, 7, 5]])
error_array = np.array([[0.1, 0.2, 0.3], [0.4, 0.5, 0.6]])

multi_chart(
    data,
    x_labels=["Vienna", "Berlin", "Lisbon"],
    group_labels=["Personal rating", "Global rating"],
    hover_texts=["foo", "bar", "blitzly"],
    errors=error_array,
    title="City ratings 🏙",
    mark_x_labels=["Lisbon"],
    write_html_path="see_the_blitz.html",
)

Gives you this:

city rating plot

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

blitzly-0.1.0.tar.gz (7.7 kB view hashes)

Uploaded Source

Built Distribution

blitzly-0.1.0-py3-none-any.whl (9.0 kB view hashes)

Uploaded Python 3

Supported by

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