Skip to main content

Simple wrapper functions for plotly visualization package

Project description

PlotlyExtreme

Set of wrapper functions to abstract repetitive tasks related to plotting with the plotly library.

The plotly functions are passed as arguments to limit what this package has to handle.

Current Plots

Plot a Big Number

plots.create_big_number

Big Number

Plot Four Dimensions using Buttons

plots.plot_four_dimensions

Four Dimensions with Annotations

Example

import pandas as pd
from plotly.offline import iplot
import plotly.graph_objs as go
import plotly

from plotlyextreme import plots

df = pd.DataFrame({
                    'abc':[1000,5000,3000,1000,1000,1500,8000,1000],
                    'def':[4,5,6,4,6,4,6,4],
                    'ghi':['a', 'b', 'a', 'b', 'a', 'b', 'a', 'b'],
                    'jkl':['z', 'z', 'z', 'z', 'y', 'y', 'y', 'y'],
                    'annotation_one': ['a', 'a', 'a', 'a', 'a', 'a', 'a', 'a'],
                    'annotation_two': ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h']
                  })

plots.create_big_number(title='abc', large_number=123, pacing=.7,
                        render_func=iplot)

plots.plot_four_dimensions(df, x='abc', y='def', title='alphabet',
                           segmentation_col='ghi',    button_col='jkl',
                           buttons=['z', 'y'], default_visibility='z',
                           trace_func=go.Scatter, render_func=iplot),
                           x_layout=go.layout.XAxis(tickformat=',d'))

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

plotlyextreme-0.0.4.tar.gz (1.7 kB view hashes)

Uploaded Source

Built Distribution

plotlyextreme-0.0.4-py3-none-any.whl (2.6 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